fitted.mix
is a function which computes fitted
values from objects returned by the modeling function
mix
. It is called via the generic function
fitted
.
# S3 method for mix
fitted(object, digits = NULL, …)
an object of class "mix"
, usually, the results
returned by the model fitting function mix
.
a specified number of decimal places to be reserved.
other arguments.
List with the following components:
the estimated mixed data, that is, the fitted numbers of observations falling into each interval.
the estimated joint data, that is, the fitted numbers of observations from each component falling into every interval.
the estimated conditional data to be
returned if usecondit
of object
is
TRUE
, which are the fitted numbers of
observations from given intervals belonging
to each component.
the estimated conditional probabilities of observations from given interval belonging to each component.
mix
for fitting mixture distributions.
# NOT RUN {
data(pike65)
data(pikepar)
fit1 <- mix(pike65, pikepar, "lnorm", mixconstr(consigma = "CCV"), emsteps = 3)
fitted(fit1)
data(pike65sg)
fit2 <- mix(pike65sg, pikepar, "gamma", mixconstr(consigma = "CCV"), usecondit = TRUE)
fitted(fit2, digits = 2)
# }
Run the code above in your browser using DataLab