fitted.mix {mixdist}R Documentation

Compute Mixture Model Fitted Values

Description

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.

Usage

## S3 method for class 'mix':
fitted(object, digits = NULL, ...)

Arguments

object an object of class "mix", usually, the results returned by the model fitting function mix.
digits a specified number of decimal places to be reserved.
... other arguments.

Value

List with the following components:

mixed the estimated mixed data, that is, the fitted numbers of observations falling into each interval.
joint the estimated joint data, that is, the fitted numbers of observations from each component falling into every interval.
conditional 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.
conditprob the estimated conditional probabilities of observations from given interval belonging to each component.

See Also

mix for fitting mixture distributions.

Examples

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)

[Package mixdist version 0.5-2 Index]