smooth.construct.ar.smooth.spec | R Documentation |
The ar
"basis" uses a separate coefficient for each value of
the variables this is a smooth function of. The coefficients are penalized
with an autoregressive penalty. This basis is useful when there are not very
many unique values of the variable, making dimension reduction unnecessary.
## S3 method for class 'ar.smooth.spec' smooth.construct(object, data, knots)
object |
a smooth specification object, generated by |
data |
a list containing just the data (including any by variable)
required by this term, with names corresponding to |
knots |
a list containing any knots supplied for basis setup - in same
order and with same names as |
Note that the predict method needs to have the ability to evaluate the
basis at any point in the range of the data; this requires interpolation
for values between the observed data. The default is to use linear
interpolation to evaluate the basis at these points. Alternative
interpolation methods may be specified using the xt
argument of the
function used to create object
(usually s()
). xt="lowess"
indicates lowess smoothing, and xt="bspline"
indicates (unpenalized)
b-spline smoothing. This method will also be used in the construction of the
basis if the user specifies knots that are not equal to the unique data values.
Jonathan Gellar JGellar@mathematica-mpr.com
smooth.construct
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.