Description Usage Arguments Details Value Examples
swReg
performs forward stagewise regression.
1 |
X |
Matrix of predictor variables. |
Y |
Outcome variable (vector). |
stepsize |
numeric. Value with which the (un)standardized coefficients are updated in each iteration (a.k.a. epsilon). |
standardizeY |
logical. Should the response be standardized prior to
application of the algorithm? If |
The function performs incremental forward stagewise regression, as described in Hastie, Tisbhirani & Friedman (2009). Hastie, T., Tibshirani, R., & Friedman, J. (2009). The Elements of Statistical Learning.
The function returns a list with the following elements: unstandardized.coef = bUnstand, standardized.coef = b, iteration = iteration, stepsize = stepsize (epsilon), coef.path = dataframe with standardized coefficient values for each predictor variable, at each stage or iteration of the algorithm data = list with original data (X andY)
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.