Saves a json prediction settings given R settings
savePredictionAnalysisList(
workFolder = "inst/settings",
cohortIds,
outcomeIds,
cohortSettingCsv = file.path(workFolder, "CohortsToCreate.csv"),
covariateSettingList,
populationSettingList,
modelSettingList,
maxSampleSize = NULL,
washoutPeriod = 0,
minCovariateFraction = 0,
normalizeData = T,
testSplit = "person",
testFraction = 0.25,
splitSeed = 1,
nfold = 3
)
Location to save json specification
Vector of target population cohort ids
Vector of outcome cohort ids
The location to the csv containing the cohort details
A list of covariate settings
A list of population settings
A list of model settings
If not NULL then max number of target population to sample for model training
Minimum prior observation for each person in target pop to be included
Minimum covariate fraction to include
Whether to normalise data
Split by person or time
Fractiuon of data to use for test set
Seed used in test split
Number of folds used when training model
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