Re: [R] very basic HLM question

2011-02-06 Thread Sebastián Daza
Thank you for your reply and sorry for my ambiguity. I computed: summary(anova1 <- aov(math ~ as.factor(schoolid), data=nels88)) ICC1(anova1) ICC1 comes from the multilevel package. I have found an article where it is pointed out that with this formula: > 34.011/(34.011+72.256) [1] 0.320052

Re: [R] very basic HLM question

2011-02-05 Thread Paul Johnson
2011/2/5 Sebastián Daza : > Hi everyone, > > I need to get a between-component variance (e.g. random effects Anova), but > using lmer I don't get the same results (variance component) than using > random effects Anova. I am using a database of students, clustered on > schools (there is not the same

[R] very basic HLM question

2011-02-05 Thread Sebastián Daza
Hi everyone, I need to get a between-component variance (e.g. random effects Anova), but using lmer I don't get the same results (variance component) than using random effects Anova. I am using a database of students, clustered on schools (there is not the same number of students by school).