Description Usage Arguments Value
Lasso model for LUR, crossvalidation, default fold (10)
1 2 3 4 5 6 7 8 9 10 | Lasso(
variabledf,
vis1 = T,
alpha = 1,
printlambda = F,
y_varname,
training,
test,
grepstring
)
|
variabledf |
the dataframe containing predictors and dependent variable |
y_varname |
name of the dependent variable. |
training |
the index for the rows used for training. |
test |
the index for the rows used for testing. |
grepstring |
the variable/column names of predictors in Lasso, grepl stlye, e.g. 'ROAD|pop|temp|wind|Rsp|OMI|eleva|coast' |
error matrix, plot selected (min MSE ) coefficients
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.