[R] flexmix glm warning

Bettina Gruen gruen at ci.tuwien.ac.at
Mon Apr 16 17:06:10 CEST 2007


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,
  	model=FLXglm(family="binomial"), k=2)

flexmix requires you to specify the dependent variable of the binomial 
model as a matrix of 2 columns containing in the first the successes and 
in the second the failures. Unfortunately this is not checked at the 
moment. I will add this.

Best,
Bettina



More information about the R-help mailing list