08.04.2015 Views

The flexmix Package - NexTag Supports Open Source Initiatives

The flexmix Package - NexTag Supports Open Source Initiatives

The flexmix Package - NexTag Supports Open Source Initiatives

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

40 stepFlexmix<br />

<strong>Source</strong><br />

P. Wang, M. Puterman, I. Cockburn, and N. Le (1996): Mixed poisson regression models with<br />

covariate dependent rates. Biometrics 52, pages 381-400.<br />

References<br />

B. Gruen and F. Leisch (2004): Bootstrapping finite mixture models. In J. Antoch, editor, Compstat<br />

2004 - Proceedings in Computational Statistics, pages 1115-1122. Physika Verlag, Heidelberg,<br />

Germany, ISBN 3-7908-1554-3.<br />

Examples<br />

data("seizure")<br />

plot(Seizures/Hours~Day, col=as.integer(Treatment),<br />

pch=as.integer(Treatment), data=seizure)<br />

abline(v=27.5, lty=2, col="grey")<br />

legend(140, 9, c("Baseline", "Treatment"),<br />

pch=1:2, col=1:2, xjust=1, yjust=1)<br />

set.seed(123)<br />

## <strong>The</strong> model presented in the Wang et al paper: two components for<br />

## "good" and "bad" days, respectively, each a Poisson GLM with hours of<br />

## parental observation as offset<br />

seizMix

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!