powered by
Evaluate a predefined spline basis at given values.
# S3 method for nsx predict(object, newx, ...)
An object just like object, except evaluated at the new values of x.
object
x
These are methods for the generic function predict for objects inheriting from classes "nsx". See
predict
"nsx"
predict for the general behavior of this function.
the result of a call to nsx having attributes describing knots, degree, etc.
nsx
knots
degree
the x values at which evaluations are required.
Optional additional arguments. At present no additional arguments are used.
nsx.
basis <- nsx(women$height, df = 5) newX <- seq(58, 72, length.out = 51) # evaluate the basis at the new data predict(basis, newX)
Run the code above in your browser using DataLab