Description Usage Arguments Details Value Author(s) References
gam
can use arbitrary smooths, specified
via terms like s(x, bs="XX")
. This extension package
allows for use of the term s(x, bs="sp")
which specifies
a non-penalized Slepian (discrete prolate spheroidal sequence)
projection smoother.
1 2 |
object |
A smooth specification object, usually generated by a term
|
data |
A list containing just the data required by this term, typically
an index series corresponding to time. Name should correspond to
If data does not consist of a contiguous index series (in time),
element |
knots |
Object should be NULL, and is functionally ignored. Only included
for compatibility with |
The constructor is not normally called directly, but is rather used
internally by gam
.
As a subspace projection operator, this smoother does not use knots: each basis vector has full support.
Suggests that a bandwidth parameter be set, 0 < W < 0.5
. This
bandwidth parameter is directly equivalent to the band-pass
of the resulting projection operator. This parameter is standardized
to be in units of cycles/timeStep
, where timeStep
is the
dT time step for the data being smoothed, i.e. 1 hour, 1 day, etc..
In the case of missing data, requires a mask vector be passed
as an extra parameter via the s(..., xt=c(mask=UserMask))
in
gam
in order to accurately compute the
basis matrix.
An object of class sp.smooth
. In addition to the usual
elements of a smooth class documented under
smooth.construct
, this object will contain:
v |
Full-length basis matrix, before sub-selecting for missing data. |
N |
Length of full (including NA) index series. |
k |
Number of basis vectors used, typically |
W |
Time-Bandwidth parameter, strictly bounded 0 < W < 0.5. |
C |
Defaulted to 1, removing centering constraints. These constraints tamper with the innate orthonormality of the basis vectors. |
Wesley Burr
Slepian, D. (1978) Prolate Spheroidal Wave Functions, Fourier Analysis and Uncertainty – V: The Discrete Cases. Bell Systems Technical Journal, V. 57, pp. 1371-1429.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.