Description Usage Arguments Details Value
Generate data
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | generateData(
connection,
cdmDatabaseSchema,
oracleTempSchema = NULL,
vocabularyDatabaseSchema = cdmDatabaseSchema,
cohortDatabaseSchema,
targetCohortTable,
drugExposureTable,
measurementTable,
conditionConceptIds,
measurementConceptId,
observationWindowBefore,
observationWindowAfter,
drugWindow,
createTargetCohortTable = T,
createTargetCohort = T,
extractFeature = T,
targetCohortId = NULL,
dataFolder,
drugFilename,
measFilename
)
|
connection |
Connection to the database. An object of class connect as created by the connect function in the DatabaseConnector package. |
cdmDatabaseSchema |
A schema where OMOP CDM data are stored. |
oracleTempSchema |
A schema that can be used to create temp tables in when using Oracle. |
vocabularyDatabaseSchema |
A schema where vocabulary is stored |
cohortDatabaseSchema |
A schema where the cohort is stored |
targetCohortTable |
A string corresponds to the name of the cohort table |
drugExposureTable |
A string corresponds to the name of the drug exposure table |
measurementTable |
A string corresponds to the name of the measurement table |
conditionConceptIds |
A list of condition concept IDs that correspond to the disease of interest. |
measurementConceptId |
A numeric of measurement concept ID |
observationWindowBefore |
An integer indicates the number of pre-treatment days used to look for pre-treatment measurement. |
observationWindowAfter |
An integer indicates the number of post-treatment days used to look for post-treatment measurement. |
drugWindow |
An integer indicates the number of post-treatment days during which drug exposure are also considered. Default is 0 |
createTargetCohortTable |
A boolean that indicates whether the targetCohortTable will be created. Default TRUE. |
createTargetCohort |
A boolean that indicates whether to create the cohort. Default TRUE. |
extractFeature |
A boolean that indicates whether to extract features for the cohort. Default TRUE. |
targetCohortId |
An integer of the cohort ID. |
dataFolder |
A string indicates where output will be stored. |
drugFilename |
A string for the name of the table to store drug exposure. |
measFilename |
A string for the name of the table to store measurement. |
This function generates cohort and extracts data of the cohort.
Returns a string containing the rendered SQL.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.