View source: R/MARGE_package.R
max_span | R Documentation |
Truncates the predictor variable value to exclude extreme values in knots selection.
max_span(X_pred, q, alpha = 0.05)
X_pred |
: a vector of values for the predictor variable. |
q |
: the number of predictors used. |
alpha |
: see Friedman (1991) equation (45). The default is 0.05. |
Note that this equation comes from Friedman (1991) equation (45).
max_span
returns a vector of truncated predictor variable values.
Jakub Stoklosa and David I. Warton.
Friedman, J. (1991). Multivariate adaptive regression splines. The Annals of Statistics, 19, 1–67.
Stoklosa, J. and Warton, D.I. (2018). A generalized estimating equation approach to multivariate adaptive regression splines. Journal of Computational and Graphical Statistics, 27, 245–253.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.