splineMatrix | R Documentation |
The function builds a matrix for piecewise polynomials fit.
splineMatrix(X, knots = NA, pFact=0.3, deg=1, method=c("manual","bs"))
X |
A numeric vector |
knots |
The piecewise polynomial knots. If set to |
pFact |
The number of knots when the argument |
deg |
The degree of the piecewise polynomials. |
method |
Should the method be homemade (manual) of based on the
|
data(simData) X <- splineMatrix(simData$X, quantile(simData$X, c(.25,.5,.75)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.