mixparam {mixdist} | R Documentation |
Construct starting values for parameters of a mixture model.
mixparam(mu, sigma, pi = NULL)
mu |
a vector of means of component distributions, which should be in ascending order. |
sigma |
a vector of standard deviations of component
distributions, which are corresponding to the means. |
pi |
the corresponding mixing proportions of components.
If |
A data frame containing three variables, which are, in order, the proportions, means, and standard deviations.
mixgroup
for grouping data, mixconstr
for constructing constraints.
mixparam(mu = c(20, 30, 40), sigma = c(2, 3, 4))
mixparam(c(20, 30, 40), c(3), c(0.15, 0.78, 0.07))