[R-sig-ME] Latent variable regression in lme4 as in HLM

Simon Harmel @|m@h@rme| @end|ng |rom gm@||@com
Wed May 27 00:27:26 CEST 2020

Dear All,

I know that in the HLM software, it is possible to use "intercept" (e.g.,
initial place of students at year "0") as the *predictor *of "slope" (e.g.,
fixed rate of change in years) under the *Latent Variable Regression *tab.

I was wondering if this is also possible in "lme4" or any other
mixed-modeling packages in R?  *Thanks, Simon*

*## Here is an example dataset for demonstration:*
dat <- read.csv('https://raw.githubusercontent.com/hkil/m/master/z.csv')
m1 <- lmer(y ~ year + (1|stid), data = dat)      #### 'stid' = student id

	[[alternative HTML version deleted]]

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