Learn R Programming

mmeln (version 1.5)

mmeln-package: tools:::Rd_package_title("mmeln")

Description

tools:::Rd_package_description("mmeln")

Arguments

Author

tools:::Rd_package_author("mmeln")

Maintainer: tools:::Rd_package_maintainer("mmeln")

Details

The DESCRIPTION file: tools:::Rd_package_DESCRIPTION("mmeln") tools:::Rd_package_indices("mmeln")

This package allows to fit multivariate normal mixture. Predictors of group membership can also be allowed in the model.

See Also

mmeln,estim.mmeln,anova.mmeln

Examples

Run this code
### load an example.
data(exY)

### estimation of the parameters of the mixture.

temps <- factor(1:3)
mmeln1 <- mmeln(Y, G = 2, form.loc = ~temps-1, form.mel = ~1, cov = "CS")
mix1 <- estim(mmeln1, mu = list(rep(1,3), rep(2,3)), tau = c(0),
              sigma = list(c(1,.6), c(1,.6)), iterlim = 100,tol = 1e-6)
mix1
anova(mix1)
plot(mix1,main="Mixture of multivariate normal")

Run the code above in your browser using DataLab