Description Usage Arguments Value Examples
Get fitted models by fitting some variable selection methods
1 | lm.compare.method(X, Y, intercept, method.names = NULL)
|
X |
covariates (n times p matrix, n: number of entries, p: number of covariates) |
Y |
response (vector with n entries) |
intercept |
TRUE to fit the data with an intercept, FALSE to fit the data without an intercept |
method.names |
vector of method names to be used for fitting. Choose among "lasso", "elastic", "relaxo", "mcp" and "scad". Default is to fit the data using all methods listed above |
estimated coefficients in a form of matrix. Each row corresponds to a method and each column corresponds to a covariate, with the first column corresponds to the intercept
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.