Projpred multilevel reference model demo error

Hello,

I am trying the multilevel reference model demo in projpred: Projection predictive feature selection • projpred and got the following error, could you please help me to solve it? Thank you very much.

Error: 'mkNewReTrms' is not an exported object from 'namespace:lme4'
In addition: Warning message:
Some Pareto k diagnostic values are too high. See help('pareto-k-diagnostic') for details.

Here is the rstanarm code in the demo

data("VerbAgg", package = "lme4")
refm_fit <- stan_glmer(
  r2 ~ btype + situ + mode + (btype + situ + mode | id),
  family = binomial(),
  data = VerbAgg,
  seed = 82616169, QR = TRUE, refresh = 0
)

The same error appeared when using brms

refm_fit <- brm(
  r2 ~ btype + situ + mode + (btype + situ + mode | id),
  family = bernoulli(link = "logit"),
  data = VerbAgg
)

Perhaps you don’t have the most recent (CRAN) version of lme4 installed? If that is the case, I will consider adding a specific version requirement for lme4 within projpred.

2 Likes

Hi @fweber144 sorry for the late reply. Updating lme4 worked in my case. Thank you very much.

2 Likes