[R] Hierarchical Linear Model using lme4's lmer
Walmes Zeviani
walmeszeviani at hotmail.com
Sat Jan 16 15:20:29 CET 2010
Doug,
It appears you are mixing nlme and lme4 formulation type.
On nlme library you type
lme(y~x, random=~1|subjetc)
On lme4 library you type
lmer(y~x+(1|subject))
You mixed them.
At your disposal.
Walmes.
Doug Adams wrote:
>
> Hi,
>
> I was wondering: I've got a dataset where I've got student 'project's
> nested within 'school's, and 'division' (elementary, junior, or
> senior) at the student project level. (Division is at the student
> level and not nested within schools because some students are
> registered as juniors & others as seniors within the same school.)
>
> So schools are random, division is fixed, and the student Score is the
> outcome variable. This is what I've tried:
>
> lmer(data=Age6m, Score ~ division + (1|school), random=~1 | school)
>
> Am I on the right track? Thanks everyone, :)
>
> Doug Adams
> MStat Student
> University of Utah
>
> ______________________________________________
> R-help at 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.
>
>
-----
..oooO
..................................................................................................
..(....)... 0ooo... Walmes Zeviani
...\..(.....(.....)... Master in Statistics and Agricultural
Experimentation
....\_)..... )../.... walmeszeviani at hotmail.com, Lavras - MG, Brasil
............
(_/............................................................................................
--
View this message in context: http://n4.nabble.com/Hierarchical-Linear-Model-using-lme4-s-lmer-tp1015485p1015621.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list