Description Usage Arguments Details Value Author(s) Examples
These internal functions are used by semipar.mix.mp
(but can
also be used more generally) to customize the implementation of B-spline
smoothing by gam
. Specifically, a B-spline smooth with
equispaced knots can be incorporated in a call to gam
using a term of the form s(x,bs="be")
, whereas knots at equally
spaced quantiles of the data can be specified by s(x,bs="bq")
.
1 2 3 4 5 6 7 8 |
object |
a |
data |
For |
knots |
a list containing any knots supplied for basis setup, in the
same order and with the same names as |
These functions are not normally called directly. For further details,
please see smooth.construct.ps.smooth.spec
and
Predict.matrix.cr.smooth
.
Either smooth.construct.be.smooth.spec
or
smooth.construct.bq.smooth.spec
produces an object of class
"bspline.smooth"
; see smooth.construct
for the
elements that this object will contain. Predict.matrix.bspline.smooth
produces a matrix mapping the coefficients for the smooth term to its values
at the supplied data values.
Yin-Hsiu Chen enjoychen0701@gmail.com and Philip Reiss phil.reiss@nyumc.org
1 2 3 4 | x. = rnorm(20)
smoo.be <- smooth.construct.be.smooth.spec(s(x), data.frame(x = x.), NULL)
smoo.bq <- smooth.construct.bq.smooth.spec(s(x), data.frame(x = x.), NULL)
Predict.matrix.bspline.smooth(smoo.bq, data.frame(x = seq(min(x.),max(x.),,100)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.