smooth_terms.LmME {tramME} | R Documentation |
Evaluate smooth terms of a LmME
model.
Description
Evaluate smooth terms of a LmME
model.
Usage
## S3 method for class 'LmME'
smooth_terms(object, as.lm = FALSE, k = 100, newdata = NULL, ...)
Arguments
object |
A |
as.lm |
Logical; if |
k |
Integer, the number of points to be used to evaluate the smooth terms.
Ignored when |
newdata |
A |
... |
Optional arguments. |
Value
A list of results from evaluating the smooth terms of the model.
Examples
data("mcycle", package = "MASS")
fit <- LmME(accel ~ s(times), data = mcycle)
plot(smooth_terms(fit, as.lm = TRUE))
[Package tramME version 1.0.6 Index]