smooth.construct.rn.smooth.spec | R Documentation |
Description here.
## S3 method for class 'rn.smooth.spec'
smooth.construct(object, data, knots)
object |
a smooth specification object, usually generated by a term s(...,bs="cr",...), s(...,bs="cs",...) or s(...,bs="cc",...). |
data |
a list containing just the data (including any by variable) required by this term, with names corresponding to object$term (and object$by). The by variable is the last element. |
knots |
a list containing any knots supplied for basis setup — in same order and with same names as data. Can be NULL. See details. |
The constructor is not normally called directly, but is rather used internally by gam. To use for basis setup it is recommended to use smooth.construct2.
An object of class "rn.smooth". In addition to the usual elements of a smooth class documented under smooth.construct, this object will contain:
xp giving the knot locations used to generate the basis.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.