coef.mix {mixdist} | R Documentation |
coef.mix
is a function which extracts mixture model coefficients
from objects returned by the model fitting function mix
. It is
called via the generic function coef
.
## S3 method for class 'mix'
coef(object, natpar = FALSE, ...)
object |
an object of class |
natpar |
a logical scalar specifying whether the natural parameters should be given. |
... |
other arguments. |
A data frame containing three variables, which are,
in order, the proportions, means, and standard
deviations, respectively. If natpar
is TRUE
,
then the natural parameters of component
distributions are also displayed.
mix
for model fitting.
data(pike65) # load the grouped data `pike65'
data(pikepar) # load the initial values of parameters for the data `pike65'
fit <- mix(pike65, pikepar, "lnorm", mixconstr(consigma = "CCV"), emsteps = 3)
coef(fit)
coef(fit, natpar = TRUE)