ExNPreg {flexmix}R Documentation

Artificial Example for Normal and Poisson Regression

Description

A simple artificial regression example with 2 latent classes, one independent variable (uniform on [0,10]), and two dependent variables with Gaussian and Poisson distribution, respectively.

Usage

ExNPreg(n)
data(NPreg)

Arguments

n Number of observations per latent class.

Details

The NPreg data frame can be re-created by ExNPreg(100) using set.seed(2602), it has been saved as a data set for simplicity of examples only.

Examples

data(NPreg)
plot(yn~x, data=NPreg, col=class)
plot(yp~x, data=NPreg, col=class)

[Package flexmix version 1.1-0 Index]