[R] flexmix glm warning

2007-04-16 Thread Ingmar Visser
Dear R-helpers Friedrich Leisch, I'm trying to fit a mixture of regression models on attached data set by doing the following: agl - read.table(agl.txt) mod1 - flexmix(resp~gng+csc|Subject,data=agl, model=FLXglm(family=binomial),k=2) The result is a (varying) number of the following

Re: [R] flexmix glm warning

2007-04-16 Thread Bettina Gruen
Ingmar, I assume that resp is a vector of zeros and ones. mod1 - flexmix(resp~gng+csc|Subject,data=agl, model=FLXglm(family=binomial),k=2) Please specify the model using the following command: mod1 - flexmix(cbind(resp, 1-resp) ~ gng+csc | Subject, data=agl,