loadPlpAnalysesJson {PatientLevelPrediction} | R Documentation |
Load the multiple prediction json settings from a file
Description
Load the multiple prediction json settings from a file
Usage
loadPlpAnalysesJson(jsonFileLocation)
Arguments
jsonFileLocation |
The location of the file 'predictionAnalysisList.json' with the modelDesignList |
Details
This function interprets a json with the multiple prediction settings and creates a list that can be combined with connection settings to run a multiple prediction study
Value
A list with the modelDesignList and cohortDefinitions
Examples
modelDesign <- createModelDesign(targetId = 1, outcomeId = 2,
modelSettings = setLassoLogisticRegression())
saveLoc <- file.path(tempdir(), "loadPlpAnalysesJson")
savePlpAnalysesJson(modelDesignList = modelDesign, saveDirectory = saveLoc)
loadPlpAnalysesJson(file.path(saveLoc, "predictionAnalysisList.json"))
# clean use
unlink(saveLoc, recursive = TRUE)
[Package PatientLevelPrediction version 6.4.1 Index]