Description Usage Arguments Value Author(s) References Examples
A symbolic wrapper to indicate a smooth term in a formula argument to PSgam
1 |
... |
the predictors. |
k |
an integer giving the number of knots. The number of basis functions is k+degree. |
degree |
an integer giving the degree of the B-splines, e.g. degree=3 gives a cubic spline. |
pord |
an integer giving the order of difference penalty. |
ps
returns the vectors of predictors, endowed with a number of
attributes. The vector itself is used in the construction of the model
matrix.
Note that ps
does not do the smoothing; it simply sets things up
for PSgam
.
Alejandro Jara <atjara@uc.cl>
Eilers, P.H.C. and Marx, B.D. (1996) Flexible Smoothing with B-splines and penalties. Statistical Science, 11(2): 89-121.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.