plot function

Plot a smn.lmm or smsn.lmm object

Plot a smn.lmm or smsn.lmm object

Fitted values versus residuals plot.

## S3 method for class 'SMN' plot(x, type = "response", level = "conditional", useweight = TRUE, alpha = 0.3, ...) ## S3 method for class 'SMSN' plot(x, type = "response", level = "conditional", useweight = TRUE, alpha = 0.3, ...)

Arguments

  • x: An object inheriting from class SMN or SMSN, representing a fitted scale mixture of (skew) normal linear mixed model.
  • type: Type of residual that should be used. For details see residuals.SMN. Default is "response", indicating raw residuals.
  • level: Level of residual that should be used. For details see residuals.SMN. Default is "conditional".
  • useweight: A logical value indicating if the estimated weights should be used as color in the plot.
  • alpha: Transparency parameter to be used (0<alpha<1). Meaningless if useweight = TRUE.
  • ...: Additional arguments.

Returns

A ggplot object.

Author(s)

Fernanda L. Schumacher, Larissa A. Matos and Victor H. Lachos

See Also

ggplot , smn.lmm , smsn.lmm , fitted.SMN , fitted.SMSN , residuals.SMN , residuals.SMSN

Examples

fm1 = smn.lmm(distance ~ age+Sex, data=nlme::Orthodont, groupVar="Subject", distr="t") plot(fm1) plot(fm1, useweight=FALSE) library(ggplot2) plot(fm1) + ggtitle("t-LMM for orthodont data")
  • Maintainer: Fernanda L. Schumacher
  • License: MIT + file LICENSE
  • Last published: 2024-12-15