[R-sig-ME] force lmer/glmer to use known random effects

Alexia Jolicoeur-Martineau alexia.jolicoeur-martineau at mail.mcgill.ca
Sat Jan 7 20:29:35 CET 2017


In SAS, there is an option to use a known covariance matrix for your random effects (See here: https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/statug_mixed_sect033.htm). In lme4 we cannot use covariance matrices but we can use random effects. Is there a way for me to do force lmer/glmer to use known random effects variances?

My algorithm works in two steps. In step 1, I fit a generalized linear mixed model with a known variable "x". In step 2, I fit the generalized linear mixed model but this time I assume "x" to be unknown and every other parameters to be known (using the parameter estimates from step 1). This is what we call alternating optimization. I thus want to be able to fix the random parameters from the model in step 2 to be the estimates of the random effects from step 1. Is this possible to do?


I already implemented my method in SAS but I wish I could also implement in R because 1) SAS macros  are slow and 2) SAS is not free so not everyone could use it.


Alexia

	[[alternative HTML version deleted]]



More information about the R-sig-mixed-models mailing list