mmlcrlike {mmlcr}R Documentation

Used internally by mmlcr to calculate component likelihoods.

Description

Find the likelihoods for each subject in an mmlcr component object. Meant to be internally by the function mmlcr

Usage

mmlcrlike(object, weights, classnumber, final = FALSE)

Arguments

object a component of an mmlcr object
weights weights for the observations in object
classnumber the class number for the likelihoods
final see below

Value

if final = FALSE, a vector of likelihoods corresponding to the weights. The weights are not used except for their row.names.
if final = TRUE, the component is returned, with fitted and residual components added. The fitted and residual components will only be correct if mmlcrlike is called sequentially over the full set of classnumbers, as is the case when mmlcrlike is called by mmlcr.

Warning

the mmlcrlike.multinomlong method returns fitted and residual components that have no real meaning. It is included only for completeness.

See Also

mmlcr, mmlcrObject


[Package mmlcr version 1.3.5 Index]