View source: R/MARGE_package.R
min_span | R Documentation |
A truncation function applied on the predictor variable for knot selection.
min_span(X_red, q, minspan = NULL, alpha = 0.05)
X_red |
: a vector of reduced predictor variable values. |
q |
: the number of predictor variables used. |
minspan |
: the set minimum span value. The default is |
alpha |
: see Friedman (1991) equation (43). The default is 0.05. |
This function selects a minimum span between the knots to mitigate runs of correlated noise in the input data and hence avoiding estimation issues, this equation comes from Friedman (1991) equation 43.
min_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.