plot.sme {sme} | R Documentation |
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.
## S3 method for class 'sme' plot(x,type="model",...)
x |
an object inheriting from class |
type |
the type of plot desired, currently either |
... |
further arguments to |
Depending on type
, either a plot of the fitted model, a plot of the raw data or a
diagnostic plot of the model residuals
Maurice Berk maurice@mauriceberk.com
Berk, M. (2012). Smoothing-splines Mixed-effects Models in R. Preprint
plotSmeModel
, plotSmeRaw
,
plotSmeDiagnostic
data(MTB) fit <- sme(MTB[MTB$variable==6031,c("y","tme","ind")]) plot(fit,type="model") plot(fit,type="raw") plot(fit,type="diagnostic")