| v_s {vglmer} | R Documentation |
Create splines for use in vglmer
Description
This function estimates splines in vglmer, similar to s(...) in
mgcv albeit with many fewer options than mgcv. It allows for
truncated (linear) splines or O'Sullivan splines. Please see vglmer
for more discussion and examples.
Usage
v_s(
...,
type = "tpf",
knots = NULL,
by = NA,
by_re = TRUE,
force_vector = FALSE,
outer_okay = FALSE
)
Arguments
... |
Variable name, e.g. |
type |
Default ( |
knots |
Default ( |
by |
A categorical or factor covariate to interact the spline with; for
example, |
by_re |
Default ( |
force_vector |
Force that argument to |
outer_okay |
Default ( |
Value
This function returns a list of class of vglmer_spline that is
passed to unexported functions. It contains the arguments noted above where
... is parsed into an argument called term.
References
Wand, Matt P. and Ormerod, John T. 2008. "On Semiparametric Regression with O'Sullivan Penalized Splines". Australian & New Zealand Journal of Statistics. 50(2): 179-198.
Wood, Simon N. 2017. Generalized Additive Models: An Introduction with R. Chapman and Hall/CRC.