[R-sig-ME] Fwd: help with a cross-classified random effects model code in R.

Stijn Ruiter s.ruiter at maw.ru.nl
Wed Sep 3 14:14:35 CEST 2008


Dear Dr. Bates,
You replied to a question by Violet(Shu) Xu on how to estimate
cross-classified (XC) models. In the DIGEST version however, no example
code is provided.
In general, how do we estimate XC models using lme4?

Is the following example for a null model for some dependent variable Y
for pupils who attended specific primary and secondary schools correct?
Or does lmer then estimate a nested model?

lmer(Y~(1|primaryschool)+(1|secondaryschool),data=dataname)

Kind regards,
Stijn Ruiter

-- 
Best regards,

Stijn Ruiter
Department of Sociology / ICS
Radboud University Nijmegen
P.O. Box 9104
6500 HE Nijmegen
Netherlands

Phone: + 31 24 361 2272
Fax:   + 31 24 361 2399

Visiting address:
Thomas van Aquinostraat 4.01.71
Nijmegen

website: http://oase.uci.ru.nl/~sruiter




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