Lasso: Lasso model for LUR, crossvalidation, default fold (10)

Description Usage Arguments Value

View source: R/Lasso.R

Description

Lasso model for LUR, crossvalidation, default fold (10)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
Lasso(
  variabledf,
  vis1 = T,
  alpha = 1,
  printlambda = F,
  y_varname,
  training,
  test,
  grepstring
)

Arguments

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'

Value

error matrix, plot selected (min MSE ) coefficients


mengluchu/APMtools documentation built on Jan. 27, 2022, 2:41 a.m.