This function fits a linear spline of Y on X and returns predicted values
1 | lin.spline(Y, X, knots = 4, space)
|
Y |
A vector of outcomes |
X |
A vector of predictors |
knots |
The number of knots in the spline |
space |
A vector of X values at which to predict |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.