LmME
model.Evaluate smooth terms of a LmME
model.
# S3 method for LmME
smooth_terms(object, as.lm = FALSE, k = 100, newdata = NULL, ...)
A list of results from evaluating the smooth terms of the model.
A tramME
object.
Logical; if TRUE
return the rescaled values according to a LMM
parametrization.
Integer, the number of points to be used to evaluate the smooth terms.
Ignored when newdata
is supplied.
A data.frame
with new values for the smooth terms.
If NULL
, the new data is set up based on the model.frame
and
k
. Smooths for which the supplied information in this input is incomplete
will be ignored.
Optional arguments. as.lm
is passed through this when it is necessary.
data("mcycle", package = "MASS")
fit <- LmME(accel ~ s(times), data = mcycle)
plot(smooth_terms(fit, as.lm = TRUE))
Run the code above in your browser using DataLab