Description Usage Arguments Value
create and transform covariates to isplines or bsplines from use in bbgdm
.
1 2 3 4 5 6 | ispline(x, spline.knots = 2, knots = NULL, spline.degree = 3)
spline.trans(x, spline_type = "ispline", spline_df = 2, spline_knots = 1)
spline_trans_for_pred(x, attrib = NULL, splineInterval = NULL,
splineDegree = NULL)
|
x |
data.frame of covariates to use as predictors in bbgdm. |
spline.knots |
number knots. |
knots |
NULL degrees of freedom; one can specify df rather than knots. Default = 3. |
spline.degree |
degrees of freedom for ispline. |
spline_type |
If "ispline" calculates bs spline from spline package. If "bspline" calculates ispline. |
spline_df |
degrees of freedom; one can specify df rather than knots. Default = 3. |
spline_knots |
The internal breakpoints that define the spline. Default = NULL for bs spline and 1 for ispline. |
attrib |
Spline parameters from model. |
splineInterval |
NULL |
splineDegree |
NULL |
A matrix of dimension c(length(x), df), where df was supplied.
A matrix of dimension c(length(x), df), where df was supplied.
I-Spline predictions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.