Description Usage Arguments Value See Also Examples
Calculate X' values for restricted cubic spline term, eg, linear predictor = B0 + B1*X + B2*X'. Based on Frank Harrell's Regression Modeling Strategies.
1 | calc.spline(x, k1, k2, k3)
|
x |
Numeric vector |
k1 |
Value of knot 1 |
k2 |
Value of knot 2 |
k3 |
Value of knot 3 |
Numeric vector of X' terms.
rcs
which this function assumes you use,
rcspline.eval
for getting knot locations
1 | calc.spline(rnorm(n = 100), k1 = -1.27, k2 = 0.02, k3 = 1.04)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.