Last chance! 50% off unlimited learning
Sale ends in
A simple artificial regression example with 2 latent classes, one
independent variable
(uniform on
ExNPreg(n)
data("NPreg")
Number of observations per latent class.
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.
data("NPreg", package = "flexmix")
plot(yn ~ x, data = NPreg, col = class)
plot(yp ~ x, data = NPreg, col = class)
plot(yb ~ x, data = NPreg, col = class)
Run the code above in your browser using DataLab