calc.spline: Calculate Spline Terms Based on rcs()

Description Usage Arguments Value See Also Examples

Description

Calculate X' values for restricted cubic spline term, eg, linear predictor = B0 + B1*X + B2*X'. Based on Frank Harrell's Regression Modeling Strategies.

Usage

1
calc.spline(x, k1, k2, k3)

Arguments

x

Numeric vector

k1

Value of knot 1

k2

Value of knot 2

k3

Value of knot 3

Value

Numeric vector of X' terms.

See Also

rcs which this function assumes you use, rcspline.eval for getting knot locations

Examples

1
calc.spline(rnorm(n = 100), k1 = -1.27, k2 = 0.02, k3 = 1.04)

jenniferthompson/ClusterBootMultinom documentation built on May 19, 2019, 4:03 a.m.