predict.bspline | R Documentation |
Evaluate a predefined spline basis at given values.
## S3 method for class 'bspline'
predict(object, newx, ...)
object |
the result of a call to |
newx |
the |
... |
Optional additional arguments. At present no additional arguments are used. |
Haiming Zhou and Timothy Hanson
bspline
require(stats)
basis <- bspline(women$height, df = 5)
newX <- seq(58, 72, length.out = 51)
# evaluate the basis at the new data
predict(basis, newX)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.