Prepares for the running the PatientLevelPrediction package
prepareForPlpData.Rd
Prepares for running the PatientLevelPrediction package by merging the treatment and comparator cohorts and defining a new covariate for treatment.
Usage
prepareForPlpData(
treatmentCohortId,
comparatorCohortId,
targetCohortId,
cohortDatabaseSchema,
cohortTable,
resultsDatabaseSchema,
mergedCohortTable,
connectionDetails
)
Arguments
- treatmentCohortId
The treatment cohort id
- comparatorCohortId
The comparator cohort id
- targetCohortId
The id of the merged cohorts
- cohortDatabaseSchema
The name of the database schema that is the location where the cohort data used to define the at risk cohort is available
- cohortTable
The table that contains the treatment and comparator cohorts.
- resultsDatabaseSchema
The name of the database schema to store the new tables. Need to have write access.
- mergedCohortTable
The table that will contain the computeIncidenceAnalysis
- connectionDetails
The connection details required to connect to adatabase.