buildModel: This function builds a model for the specified feature vector...

Description Usage Arguments Details Value Examples

Description

This function builds a model for the specified feature vector using cases and controls for a certain outcomeName. Returns a caret trained model.

Usage

1
buildModel(flags, pp_total, outcomeNameS, saveFolder)

Arguments

flags

The R dataframe that contains all feature/model flags specified in settings.R.

outcomeNameS

String description of the outcome for which the model is being built

saveFolder

folder in which summary file output will be saved

featureVector

Flattened feature vector returned by combineFeatureVectors function, with labeled cases and controls. Assumed to have one column named "Class_labels" and one named "pid"

Details

This function builds a model for the specified outcomeName. The model is specified in the flags dataframe (currently only supports LASSO).

Value

An transferable caret Model object

Examples

1
2
3
4
5
6
## Not run: 

 model_predictors <- buildModel(flag, fv_all, predictorsNames, outcomeName, saveFolder)


## End(Not run)

OHDSI/Aphrodite documentation built on Sept. 18, 2020, 10:26 p.m.