Description Usage Arguments Value Author(s) References See Also Examples
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.
1 2 | 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
1 2 3 4 | data(MTB)
fit <- sme(MTB[MTB$variable==6031,c("y","tme","ind")])
plotSmeModel(fit,showIndividuals=FALSE)
plotSmeModel(fit,showConfidenceBands=TRUE)
|
Loading required package: splines
Loading required package: lattice
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.