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.
1 |
x |
numerical vector |
knots |
vector specifying the knot locations |
inclx |
logical, if TRUE returns also the x vector |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.