Alain Yamakana
2006-Jun-11 19:59 UTC
[R] Error in "[.default"(mf[, 1], , 1) : incorrect number of dimensions
Hi there!
I would be very appreciative of your help with getting ride of the above
mentioned error. As apparent on the following output, I am trying unsuccessfully
to run glmm following strictly the example accompanying repeated package. I was
able to get it from
http://microarrays.unife.it/bioc-mirror/lindsey/stable/src/contrib/html/
>
riesby<-read.table("http://tigger.uic.edu/~hedeker/RIESBY.DAT.txt")
Warning message:
number of items read is not a multiple of the number of columns
> riesby<-riesby[1:396,]
> id<-factor(riesby[,1])
> hamD<-riesby[,2]
> intcpt<-riesby[,3]
> week<-factor(riesby[,4])
> endog<-riesby[,5]
> endweek<-riesby[,6]
>
glmm(hamD~intcpt,family=gaussian,data=data.fram(hamD,intcpt,week),nest=week)
Error in inherits(data, "repeated") : could not find function
"data.fram">
glmm(hamD~intcpt,family=gaussian,data=data.frame(hamD,intcpt,week),nest=week)
Error in "[.default"(mf[, 1], , 1) : incorrect number of
dimensions>
glmm(hamD~intcpt,family=poisson,data=data.frame(hamD,intcpt,week),nest=week)
Error in "[.default"(mf[, 1], , 1) : incorrect number of
dimensions> dat<-data.frame(id,hamD,intcpt,week,endog,endweek)
> glmm(hamD~intcpt,family=poisson,data=dat,nest=week)
Error in "[.default"(mf[, 1], , 1) : incorrect number of dimensions
Thanks, in advance, for your valuable help
Alain
[[alternative HTML version deleted]]
