Learn R Programming

glmmrBase (version 0.10.5)

residuals.mcml: Residuals method for a `mcml` object

Description

Calling residuals on an `mcml` object directly is not recommended. This function will currently only generate marginal residuals. It will generate a new `Model` object internally, thus copying all the data, which is not ideal for larger models. The preferred method is to call residuals on either the `Model` object or using `Model$residuals()`, both of which will also generate conditional residuals.

Usage

# S3 method for mcml
residuals(object, type, ...)

Value

A matrix with either one column is conditional is false, or with number of columns corresponding to the number of MCMC samples.

Arguments

object

A `mcml` object.

type

Either "standardized", "raw" or "pearson"

...

Further arguments passed from other methods