[R] lmer problem
Yunjeong Hong
likeciel at gmail.com
Thu Aug 2 04:11:50 CEST 2007
Dear all,
Here's my question about "lmer".
this function is very weird because it depends on the data set to work.
sometimes it works, other times does not work.
I attach the data file and the codes are below that I tried to make it work.
Please let me know what the problem is and how to solve this problem.
Thank you,
Best,
Yunjeong
model<-lmer(vote~z.income+z.county.income.full+z.income*
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"))
: this does not work.
model<-lmer(vote~z.income+z.county.income.full+z.income*
z.county.income.full+(1+z.income|fipsid),family=gaussian())
: this works
model<-lmer(vote~z.income+z.county.income.full+z.income:
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"),data=
as.data.frame(newData[c(1:2041),]))
:this works
model<-lmer(vote~z.income+z.county.income.full+z.income*
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"),data=
as.data.frame(newData[c(1:2040,2048:2309),]))
*:this works*
model<-lmer(vote~z.income+z.county.income.full+z.income*
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"),data=
as.data.frame(newData[c(1:2041,2048:2309),]))
:this does not work
model<-lmer(vote~z.income+z.county.income.full+z.income*
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"),data=
as.data.frame(newData[c(1:2042,2048:2309),]))
:this does not work, I think there is some problem in the data set between
2041 and 2048
model<-lmer(vote~z.income+z.county.income.full+z.income*
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"),data=
as.data.frame(newData[c(1:2040,2047:2309),]))
:this does not work
model<-lmer(vote~z.income+z.county.income.full+z.income:
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"),data=
as.data.frame(newData[c(1:2042),]))
model<-lmer(vote~z.income+z.county.income.full+z.income:
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"),data=
as.data.frame(newData[c(1:2043),]))
.
.
model<-lmer(vote~z.income+z.county.income.full+z.income:
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"),data=
as.data.frame(newData[c(1:2049),]))
: but these 8 models work
model<-lmer(vote~z.income+z.county.income.full+z.income:
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"),data=
as.data.frame(newData[c(1:2050),]))
:this doesn't work
> model<-lmer(vote~z.income+z.county.income.full+z.income:
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"),data=
as.data.frame(newData[c(1:2049,2050:2309),]))
: not work
> model<-lmer(vote~z.income+z.county.income.full+z.income:
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"),data=
as.data.frame(newData[c(1:2049,2051:2309),]))
not work
> model<-lmer(vote~z.income+z.county.income.full+z.income:
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"),data=
as.data.frame(newData[c(1:2049,2100:2309),]))
: not work
> model<-lmer(vote~z.income+z.county.income.full+z.income:
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"),data=
as.data.frame(newData[c(2200:2309),]))
: not work
> model<-lmer(vote~z.income+z.county.income.full+z.income:
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"),data=
as.data.frame(newData[c(1:2045,2309),]))
it works
> model<-lmer(vote~z.income+z.county.income.full+z.income:
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"),data=
as.data.frame(newData[c(1:2046,2309),]))
it works
> model<-lmer(vote~z.income+z.county.income.full+z.income:
z.county.income.full+(1+z.income|fipsid),family=binomial(link="logit"),data=
as.data.frame(newData[c(1:2047,2309),]))
it does not work
please help me!
More information about the R-help
mailing list