View source: R/RunMultiplePlp.R
savePlpAnalysesJson | R Documentation |
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
)
modelDesignList |
A list of modelDesigns created using |
cohortDefinitions |
A list of the cohortDefinitions (generally extracted from ATLAS) |
saveDirectory |
The directory to save the modelDesignList settings |
This function creates a json file with the modelDesignList saved
The json string of the ModelDesignList
modelDesign <- createModelDesign(targetId = 1,
outcomeId = 2,
modelSettings = setLassoLogisticRegression())
saveLoc <- file.path(tempdir(), "loadPlpAnalysesJson")
jsonFile <- savePlpAnalysesJson(modelDesignList = modelDesign, saveDirectory = saveLoc)
# clean up
unlink(saveLoc, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.