Skip to content
Prev 17986 / 20628 Next

Large mixed & crossed-effect model looking at educational spending on crime rates with error messages

On 09/10/2019 08:19, Ades, James wrote:
Imputation really isn't my area of expertise, but I think you predict
unseen DVs, not impute them.
lme4 won't do the imputation for you. Check out the mice package. brms
also has support doing imputation as part of its model with the mi()
function. See ?brmsformula.
No, there's simply no free lunch when it comes to optimization. Some
optimizers will work better in some situations. See ?convergence and
?allFit and make sure to check out how well the converged model actual
fits your data.
I would tend to keep random intercepts in the model. Check out ?rePCA
and the following articles for some ideas about how to simplify your model:

https://arxiv.org/abs/1506.04967

https://nextjournal.com/dmbates/complexity-in-fitting-linear-mixed-models/

Phillip