Evaluate a Spline Basis
Evaluate a predefined spline basis at given values.
## S3 method for class 'nsx' predict(object, newx, ...)
object |
the result of a call to |
newx |
the |
... |
Optional additional arguments. At present no additional arguments are used. |
An object just like object
, except evaluated at the new values
of x
.
nsx
.
basis <- nsx(women$height, df = 5) newX <- seq(58, 72, length.out = 51) # evaluate the basis at the new data predict(basis, newX)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.