powered by
## S3 method for class 'nsx': predict(object, newx, \dots)
nsx
knots
degree
x
object
These are methods for the generic function predict for objects inheriting from classes "nsx". See predict for the general behavior of this function.
predict
"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