Getting the correct number of pi estimates with CJSMixture

In fitting a model using CJSMixture (a CJS model with Pledger mixtures), I "discovered" that the correct number of pi parameters (C-1) will not be estimated with a default pi model when the number of mixtures is greater than 2. To get an estimate for pi for each class (or rather all but the last class, because the pi parameters must sum to 1), specify a model for pi that fits the mixture parameter:
This works because the default design data has a mixture column with C-1 values (thanks Jeff).
I am certain this has probably been spelled out before somewhere or is common knowledge to others but I thought it might deserve it's own topic for this forum. I noticed it when i saw my model (assuming a mixture of 3 classes) fitting 3 estimates for p but only one estimate for pi (rather than 2). (As an aside, I am not sure how to interpret the single pi estimate, but my guess is that the single estimate suggest equal probability of assignment to the first two classes and the remainder (1-2*pi) is the probability of assignment for the third class?)
The mixture column in the default design data for pi would also allow for models to test for heterogeneity within groups (such as sex) using a mixture*group pi model. Pledger et al. 2003 discuss this briefly but don't illustrate an example and I would be very keen to see an example of this being implement if anyone knows of one.
- Code: Select all
pi.mix=<-list(formula=~mixture)
This works because the default design data has a mixture column with C-1 values (thanks Jeff).
I am certain this has probably been spelled out before somewhere or is common knowledge to others but I thought it might deserve it's own topic for this forum. I noticed it when i saw my model (assuming a mixture of 3 classes) fitting 3 estimates for p but only one estimate for pi (rather than 2). (As an aside, I am not sure how to interpret the single pi estimate, but my guess is that the single estimate suggest equal probability of assignment to the first two classes and the remainder (1-2*pi) is the probability of assignment for the third class?)
The mixture column in the default design data for pi would also allow for models to test for heterogeneity within groups (such as sex) using a mixture*group pi model. Pledger et al. 2003 discuss this briefly but don't illustrate an example and I would be very keen to see an example of this being implement if anyone knows of one.