The flexmix Package - NexTag Supports Open Source Initiatives
The flexmix Package - NexTag Supports Open Source Initiatives
The flexmix Package - NexTag Supports Open Source Initiatives
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
4 ExNclus<br />
ExNPreg<br />
Artificial Example for Normal, Poisson and Binomial Regression<br />
Description<br />
Usage<br />
A simple artificial regression example with 2 latent classes, one independent variable (uniform on<br />
[0, 10]), and three dependent variables with Gaussian, Poisson and Binomial distribution, respectively.<br />
ExNPreg(n)<br />
data("NPreg")<br />
Arguments<br />
n<br />
Number of observations per latent class.<br />
Details<br />
<strong>The</strong> NPreg data frame can be re-created by ExNPreg(100) using set.seed(2602), it has<br />
been saved as a data set for simplicity of examples only.<br />
Examples<br />
data("NPreg")<br />
plot(yn~x, data=NPreg, col=class)<br />
plot(yp~x, data=NPreg, col=class)<br />
plot(yb~x, data=NPreg, col=class)<br />
ExNclus<br />
Artificial Example with 4 Gaussians<br />
Description<br />
Usage<br />
A simple artificial example for normal clustering with 4 latent classes, all of them having a Gaussian<br />
distribution. See the function definition for true means and covariances.<br />
ExNclus(n)<br />
data("Nclus")<br />
Arguments<br />
n<br />
Number of observations in the two small latent classes.