Skip to contents

plot method for class "mmes".

Usage

# S3 method for class 'mmes'
plot(x,stnd=TRUE, ...)

Arguments

x

an object of class "mmes"

stnd

if TRUE, residuals are studentized, i.e. divided by the square root of their conditional variance diag(R - W Ci t(W)), which holds for any residual structure R (weights, W, heterogeneous, structured or multi-trait). If FALSE, raw residuals are shown.

...

Further arguments to be passed

Details

Four panels are drawn: residuals vs fitted values, normal Q-Q, scale-location and residuals vs leverage. Leverage is diag(W Ci t(W) solve(R)) with W=[X Z]. Ci comes from postPEV when the fit did not store it (the default), so no direct inversion of the coefficient matrix is done. The Henderson and direct engines are supported, as well as Gaussian nonlinear curve fits with additive random effects (linearized at the solution). GLMM/Laplace, rotated, non-Gaussian nonlinear and joint or random-curve nonlinear fits are not supported and give an error. Non-scalar residual structures build a dense n x n residual covariance, which is limited by the memory setting.

Value

Invisibly, a list with the fitted, residuals (as plotted) and leverage values.

Author

Giovanny Covarrubias covarrubiasp@wisc.edu

See also

Examples

data(DT_yatesoats, package="enhancer")
DT <- DT_yatesoats
head(DT)
m3 <- mmes(fixed=Y ~ V + N + V:N,
           random = ~ B + B:MP,
           rcov=~units,
           data = DT)