plotSmeModel {sme} | R Documentation |
The observations used to fit the given smoothing-splines mixed-effects model are shown as a scatter plot and the fitted mean curve is overlaid. Optionally, the fitted individual curves are also shown. Also, the 95% confidence band for the fitted mean curve can optionally be displayed.
plotSmeModel(x,xlab="Time",ylab="Y",showIndividuals=T,showConfidenceBands=F, col.meanCurve="red",...)
x |
an object inheriting from class |
xlab |
the label for the x-axis, defaulting to |
ylab |
the label for the y-axis, defaulting to |
showIndividuals |
if |
showConfidenceBands |
if |
col.meanCurve |
the color to be used for the fitted mean curve and,
if |
... |
additional arguments passed through to |
A plot visualising the fitted smoothing-splines mixed-effects model as described above.
Maurice Berk maurice@mauriceberk.com
Berk, M. (2012). Smoothing-splines Mixed-effects Models in R. Preprint
plot.sme
, plotSmeRaw
, plotSmeDiagnostic
data(MTB) fit <- sme(MTB[MTB$variable==6031,c("y","tme","ind")]) plotSmeModel(fit,showIndividuals=FALSE) plotSmeModel(fit,showConfidenceBands=TRUE)