Skip to content
Prev 18758 / 20628 Next

blmer(), minimum amount of prior to get a model to converge

There's no single minimum amount, but you can decrease the relative
impact of the prior by fitting a sequence of models until convergence
becomes a problem again.

# default
m2 <- blmer(math ~ ses*sector + (ses | sch.id), data = hsb, cov.prior
= wishart(df = level.dim + 2.5))
# point at which blme model is same as lme4
m3 <- blmer(math ~ ses*sector + (ses | sch.id), data = hsb, cov.prior
= wishart(df = level.dim + 1))
# fit models in sequence with df from level.dim + 2.5 to level.dim + 1

Technically, any prior which goes to zero when the determinant of the
covariance of the random effects go to zero should have the desired
effect (df > level.dim + 1), but there may be limitations introduced
by the optimizer.

Vince
On Sat, Oct 3, 2020 at 1:17 AM Simon Harmel <sim.harmel at gmail.com> wrote: