| residuals.moc {moc} | R Documentation |
print.moc computes the posterior mixture probabilities of each subject.
residuals.moc computes the response or deviance residuals of an
object of class `moc'. These can be weighted by the posterior mixture
probabilities within each group or globally.
post.moc computes the posterior mixture probabilities of each subject.
fitted.moc computes the expected values for each observation of a `moc' object.
AIC.moc generates a table of log likelihood, AIC or BIC values
along with the degrees of freedom of multiple `moc' objects. The
computed values are -2 log Like + k * npar. For the BIC k = log(nobs).
logLik returns on object of class logLik containing the log likelihood, degrees of freedom and number of observations.
print.moc(x,...)
residuals.moc(object,...,type="deviance",post.weight=TRUE,within=TRUE)
post.moc(object,...)
fitted.moc(object,...)
AIC.moc(object,...,k=2)
logLik.moc(object,...)
x,object,... |
Objects of class `moc'. |
type |
Either deviance ( the default ) or response. Deviance residuals are defined as properly scaled difference in the log likelihood at the observed and fitted value. Response residuals are simply the difference between the observed and expected values. |
post.weight |
Specify if the residuals must be weighted by the posterior mixture probabilities. Weighthing is preferable, it is the default. |
within |
Specify if the weights are rescaled within each mixture group. |
k |
can be any real number or the string "BIC". |
Bernard Boulerice <Bernard.Boulerice@umontreal.ca>
Lindsay, Bruce G. and Roeder, K. (1992) Residual diagnostics for mixture models, J. Amer. Statist. Assoc., 87, pp. 785794.