normalmixEM(x, lambda = NULL, mu = NULL, sigma = NULL, k = 2,
arbmean = TRUE, arbvar = TRUE, epsilon = 1e-08,
maxit = 10000, verb = FALSE)lambda is
random from uniform Dirichlet and number of
components is determined by mu.lambda and mu are NULL, then number of comsigma$^2$ has random exponential entries according to a binning method done on the data.
If lambda, mu, and sigmlambda, mu, and sigma
are all NULL.mus. If FALSE, then
a scale mixture will be fit.sigmas. If FALSE, then
a location mixture will be fit.normalmixEM returns a list of class mixEM with items:arbmean = FALSE, then only the smallest standard
deviation is returned. See scale below.arbmean = FALSE, then the scale factor for the component standard deviations is returned.
Otherwise, this is omitted from the output.mvnormalmixEM##Analyzing the Old Faithful geyser data with a 2-component mixture of normals.
data(faithful)
attach(faithful)
out<-normalmixEM(waiting, arbvar = FALSE)
outRun the code above in your browser using DataLab