Description Usage Arguments Details
View source: R/PositiveControlSynthesis.R
Inject outcomes on top of negative controls
1 2 3 4 | synthesizePositiveControls(connectionDetails, cdmDatabaseSchema,
cohortDatabaseSchema, tablePrefix = "legend",
indicationId = "Depression", oracleTempSchema, outputFolder,
sampleSize = 1e+05, maxCores = 4)
|
connectionDetails |
An object of type |
cdmDatabaseSchema |
Schema name where your patient-level data in OMOP CDM format resides. Note that for SQL Server, this should include both the database and schema name, for example 'cdm_data.dbo'. |
cohortDatabaseSchema |
Schema name where intermediate data can be stored. You will need to have write priviliges in this schema. Note that for SQL Server, this should include both the database and schema name, for example 'cdm_data.dbo'. |
tablePrefix |
A prefix to be used for all table names created for this study. |
indicationId |
A string denoting the indicationId for which the exposure cohorts should be created. |
oracleTempSchema |
Should be used in Oracle to specify a schema where the user has write priviliges for storing temporary tables. |
outputFolder |
Name of local folder to place results; make sure to use forward slashes (/) |
sampleSize |
The maximum sample size to be used to fit the outcome models. |
maxCores |
How many parallel cores should be used? If more cores are made available this can speed up the analyses. |
This function injects outcomes on top of negative controls to create controls with predefined relative risks greater than one.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.