mmlcrlike {mmlcr} | R Documentation |
Find the likelihoods for each subject in an mmlcr
component object. Meant to be
internally by the function mmlcr
mmlcrlike(object, weights, classnumber, final = FALSE)
object |
a component of an mmlcr object
|
weights |
weights for the observations in object |
classnumber |
the class number for the likelihoods |
final |
see below |
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
.
the mmlcrlike.multinomlong method returns fitted and residual components that have no real meaning. It is included only for completeness.