Dear R users, I'm estimating a two-level regresion model but having difficuly in finding a good R syntax example.
Let me use an example to explain what I'm doing. The dependent variable is math score (mathscore). Predictors are at two levels. At the student level, they are household income (hinc) and IQ (IQ). At the school level, there is a dummy variable indicating if the school is a private school (prvsch). I also have school IDs (id) that can be used as the subject. I'm wondering what the syntax would be in R. Any advice is appreciated. Best Gary [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.