A visualisation of the raw data used to fit the smoothing-splines mixed-effects model is obtained.
This is presented as a trellis plot where each panel shows the observations for one of the
subjects as a scatter plot (with optional lines connecting the observations if `showRawLines`

is `TRUE`

). If `showModelFits`

is `TRUE`

, then these observations are overlaid
with the fitted individual curve for that subject.

1 | ```
plotSmeRaw(x,xlab="Time",ylab="Y",mainTitle="",showModelFits=TRUE,showRawLines=FALSE)
``` |

`x` |
an object inheriting from class |

`xlab` |
the label for the x-axis, defaulting to |

`ylab` |
the label for the y-axis, defaulting to |

`mainTitle` |
the main title for the plot, defaulting to none |

`showModelFits` |
if |

`showRawLines` |
if |

A trellis plot as described above.

Maurice Berk maurice@mauriceberk.com

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

`plot.sme`

, `plotSmeModel`

, `plotSmeDiagnostic`

1 2 3 4 5 | ```
data(MTB)
fit <- sme(MTB[MTB$variable==6031,c("y","tme","ind")])
plotSmeRaw(fit,showModelFits=FALSE)
plotSmeRaw(fit,showModelFits=FALSE,showRawLines=TRUE)
plotSmeRaw(fit)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.