repnormmixEM(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.mu is determined by a
normal distribution according to a binning method done on the data. If both
lambda and mu are NULL, then number of components is determined by sigma.lambda, mu, and sigma are NULL, then number of components is determined by k.lambda, mu,
and sigma are NULL.mus. If FALSE, then
a scale mixture will be fit.sigmas. If FALSE, then
a location mixture will be fit.repnormmixEM 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.normalmixEM
## EM output for the water-level task data set.
data(Waterdata)
set.seed(100)
water <- t(as.matrix(Waterdata[,3:10]))
em.out <- repnormmixEM(water, k = 2, verb = TRUE, epsilon = 1e-03)
em.out
Run the code above in your browser using DataLab