s | R Documentation |
s
Provides interface between mgcv::s and BNSP. s(...)
calls
mgcv::smoothCon(mgcv::s(...),...
s(..., data, knots = NULL, absorb.cons = FALSE, scale.penalty = TRUE,
n = nrow(data), dataX = NULL, null.space.penalty = FALSE, sparse.cons = 0,
diagonal.penalty = FALSE, apply.by = TRUE, modCon = 0, k = -1, fx = FALSE,
bs = "tp", m = NA, by = NA, xt = NULL, id = NULL, sp = NULL, pc = NULL)
... |
a list of variables. See mgcv::s |
data |
see mgcv::smoothCon |
knots |
see mgcv::knots |
absorb.cons |
see mgcv::smoothCon |
scale.penalty |
see mgcv::smoothCon |
n |
see mgcv::smoothCon |
dataX |
see mgcv::smoothCon |
null.space.penalty |
see mgcv::smoothCon |
sparse.cons |
see mgcv::smoothCon |
diagonal.penalty |
see mgcv::smoothCon |
apply.by |
see mgcv::smoothCon |
modCon |
see mgcv::smoothCon |
k |
see mgcv::s |
fx |
see mgcv::s |
bs |
see mgcv::s |
m |
see mgcv::s |
by |
see mgcv::s |
xt |
see mgcv::s |
id |
see mgcv::s |
sp |
see mgcv::s |
pc |
see mgcv::s |
The most relevant arguments for BNSP users are the list of variables ...
, knots
, absorb.cons
, bs
, and by
.
A design matrix that specifies a smooth term in a model.
Georgios Papageorgiou gpapageo@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.