train: Train Adaptive ENET Model for ERS

Description Usage Details

View source: R/ers.R

Description

This function explores optimal tuning parameter values for the adaptive elastic net model. Using the trained model results, environmental risk score is computed.

Usage

1
train(x, y, covar = NULL, control = list(method = "cv"))

Details

Algorithm:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
define sets of model parameter values to evaluate
|for each parameter set
| |for each resampling iteration
| |    hold out specific samples
| |    fit the model on the remainder
| |    predict the hold-out samples
| |  end
|   calculate the average performance across hold-out predictions
|  end
 determine the optimal parameter set
 fit the final model to all the training data using the optimal parameter set

umich-biostatistics/ers documentation built on Oct. 29, 2020, 8:15 a.m.