Evaluate a predefined spline basis at given values.
## S3 method for class 'bs' predict(object, newx, ...) ## S3 method for class 'ns' predict(object, newx, ...)
the result of a call to
Optional additional arguments. At present no additional arguments are used.
An object just like
object, except evaluated at the new values
These are methods for the generic function
objects inheriting from classes
predict for the general behavior of this function.
require(stats) basis <- ns(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.