Save the modelDesignList to a json file

savePlpAnalysesJson(
  modelDesignList = list(createModelDesign(targetId = 1, outcomeId = 2, modelSettings =
    setLassoLogisticRegression()), createModelDesign(targetId = 1, outcomeId = 3,
    modelSettings = setLassoLogisticRegression())),
  cohortDefinitions = NULL,
  saveDirectory = NULL
)

Arguments

modelDesignList

A list of modelDesigns created using createModelDesign()

cohortDefinitions

A list of the cohortDefinitions (generally extracted from ATLAS)

saveDirectory

The directory to save the modelDesignList settings

Details

This function creates a json file with the modelDesignList saved

Examples

if (FALSE) {
savePlpAnalysesJson(
modelDesignList = list(
createModelDesign(targetId = 1, outcomeId = 2, modelSettings = setLassoLogisticRegression()), 
createModelDesign(targetId = 1, outcomeId = 3, modelSettings = setLassoLogisticRegression())
),
saveDirectory = 'C:/bestModels'
)
}