plot.sme: Visualisation of smoothing-splines mixed-effects models

Description Usage Arguments Value Author(s) References See Also Examples

Description

A visualisation of the smoothing-splines mixed-effects model fit is obtained. For type="model", a scatter plot of the observations overlaid with the fitted mean and (optionally) individual curves. Confidence limits for the mean curve can optionally also be shown. See plot.sme.model for further details. For type="raw", a trellis plot of the raw data for each subject, with the fitted individual curves optionally overlaid. See plot.sme.raw for further details. For type="diagnostic", a diagnostic plot of the model residuals. See plot.sme.diagnostic for further details.

Usage

1
2
## S3 method for class 'sme'
plot(x,type="model",...)

Arguments

x

an object inheriting from class sme, representing a fitted smoothing-splines mixed-effects model

type

the type of plot desired, currently either "model" for visualising the model fit, "raw" for visualising the raw data or "diagnostic" for visualising the model residuals

...

further arguments to plotSmeModel, plotSmeRaw or plotSmeDiagnostic

Value

Depending on type, either a plot of the fitted model, a plot of the raw data or a diagnostic plot of the model residuals

Author(s)

Maurice Berk [email protected]

References

Berk, M. (2012). Smoothing-splines Mixed-effects Models in R. Preprint

See Also

plotSmeModel, plotSmeRaw, plotSmeDiagnostic

Examples

1
2
3
4
5
  data(MTB)
  fit <- sme(MTB[MTB$variable==6031,c("y","tme","ind")])
  plot(fit,type="model")
  plot(fit,type="raw")
  plot(fit,type="diagnostic")

sme documentation built on May 2, 2019, 4:03 a.m.