ns | R Documentation |
This function just calls ns()
from the
splines
package.
ns(x, df = NULL, knots = NULL, intercept = FALSE,
Boundary.knots = range(x))
x |
the predictor variable. Missing values are allowed. |
df |
degrees of freedom. One can supply |
knots |
breakpoints that define the spline. The default is no
knots; together with the natural boundary conditions this results in
a basis for linear regression on |
intercept |
if |
Boundary.knots |
boundary points at which to impose the natural
boundary conditions and anchor the B-spline basis (default the range
of the data). If both |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.