brms version 2.15.0
projpred version 2.0.2
I am trying to use projpred on my below model run in brms. However, when I run either get_refmodel() or varsel() I get an error.
I get the error message: “Error: Projpred only supports standard multilevel terms and offsets.”
Does projpred not work with models that include splines?
Thanks!
Edit: I tried the same model without the spline and I get this error when calling varsel():
“Error in get(extend_family_specific, mode = “function”) :
object ‘extend_family_negbinomial’ of mode ‘function’ was not found”
Thanks for the response! Unfortunately, I get the same error with s(month). It only seems to work if I remove the spline from the model. (and of course change the family to Poisson, as nb is not supported)
I can’t share the data, so I made some simple simulation and ran a similar poisson model with s(time). I get the same error. It doesn’t look like I can upload my brmsfit object to Stan forum, so I am attaching the code to replicate here.sim poisson spline varsel error.txt (826 Bytes)