Description Usage Arguments Value
View source: R/compare_method.r
Helper function, please do not use
1 | get.compare.fit(x, y, intercept, method.names, current.compare.fit = 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 in cross validation. Choose among "lasso", "elastic", "relaxo", "mcp" and "scad". Default is to use all methods listed above |
current.compare.fit |
(optional) |
a list which includes the estimated coefficients (est.b) and the corresponding ordinary least square fit from stats::lm()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.