b_rcs: Basis for restricted cubic splines

Description Usage Arguments

View source: R/b_rcs.R

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


peRiodiCS documentation built on May 2, 2019, 11:10 a.m.