null.space.dimension {mgcv} | R Documentation |
The basis of the space of un-penalized functions for a TPRS
Description
The thin plate spline penalties give zero penalty to some
functions. The space of these functions is spanned by a set of
polynomial terms. null.space.dimension
finds the dimension of this space, , given
the number of covariates that the smoother is a function of,
,
and the order of the smoothing penalty,
. If
does not
satisfy
then the smallest possible dimension
for the null space is found given
and the requirement that
the smooth should be visually smooth.
Usage
null.space.dimension(d,m)
Arguments
d |
is a positive integer - the number of variables of which the t.p.s. is a function. |
m |
a non-negative integer giving the order of the penalty functional, or signalling that the default order should be used. |
Details
Thin plate splines are only visually smooth if the order of the
wiggliness penalty, , satisfies
. If
then this routine finds the smallest
giving visual smoothness
for the given
, otherwise the supplied
is used. The null space dimension is given by:
which is the value returned.
Value
An integer (array), the null space dimension
.
Author(s)
Simon N. Wood simon.wood@r-project.org
References
Wood, S.N. (2003) Thin plate regression splines. J.R.Statist.Soc.B 65(1):95-114
https://www.maths.ed.ac.uk/~swood34/
See Also
Examples
require(mgcv)
null.space.dimension(2,0)