fitted.mmlcr {mmlcr} | R Documentation |
Extract fitted or residual values from components of a mmlcr object.
fitted.mmlcr(object, which = 1:length(object$components), ...) residuals.mmlcr(object, which = 1:length(object$components), ...)
object |
Fitted mmlcr object. |
which |
Which components to extract fit or residuals from |
... |
Included for compatibility with generic functions. |
For each observation in a component, the fit is the weighted mean of the fits from the individual class fits. The weights are the posterior class membership probabilities.
A list, with a vector of fits or residuals for each component in which.
Although the function works on multinom components, the results are not meaningful.