b_rcs: Basis for restricted cubic splines

Description Usage Arguments

Description

Function that derives the restricted cubic splines for a value/vector of values, given the knots; obtains exactly the same results as the rcs function included in the rms package.

Usage

1
b_rcs(x, knots, inclx = FALSE)

Arguments

x

numerical vector

knots

vector specifying the knot locations

inclx

logical, if TRUE returns also the x vector


crtahlin/peRiodiCS documentation built on May 15, 2019, 2:50 a.m.