View source: R/predict.hero_bspline.R
| predict.hero_bspline | R Documentation | 
hero_bspline objectPredicted values based on object created by
bspline.
## S3 method for class 'hero_bspline'
predict(object, newx, nderiv = 0L, sparse = TRUE, ...)
| object | A  | 
| newx | A numeric vector of values at which to evaluate the B-spline functions or derivatives. | 
| nderiv | An integer value specifying the derivative order of the B-splines. The default is 0. | 
| sparse | A logical value indicating if the result
should be a sparse version of the
 | 
| ... | Not currently implemented. | 
An n \times k matrix (or
Matrix-class object if
sparse = TRUE), where n is the number of
values in newx and k is the number of
basis functions in object.  Each row gives the
predicted values of the basis functions for the
appropriate value of newx.
bspline
b = bspline(nbasis = 10)
p = predict(b, newx = seq(0, 1, len = 101))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.