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

______________________________________________
[email protected] 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.

Reply via email to