View source: R/HelperFunctions.R
prepareForPlpData | R Documentation |
Prepares for running the PatientLevelPrediction package by merging the treatment and comparator cohorts and defining a new covariate for treatment.
prepareForPlpData( treatmentCohortId, comparatorCohortId, targetCohortId, cohortDatabaseSchema, cohortTable, resultsDatabaseSchema, mergedCohortTable, connectionDetails )
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. |
Creates the tables resultsDatabaseSchema.mergedCohortTable, resultsDatabaseSchema.attributeDefinitionTable and resultsDatabaseSchema.cohortAttributeTable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.