synthesizePositiveControls: Synthesize positive controls

Description Usage Arguments Details

View source: R/SynthesizePositiveControls.R

Description

Synthesize positive controls

Usage

1
2
3
synthesizePositiveControls(connectionDetails, cdmDatabaseSchema,
  cohortDatabaseSchema, cohortTable = "cohort", oracleTempSchema,
  outputFolder, maxCores = 1)

Arguments

connectionDetails

An object of type connectionDetails as created using the createConnectionDetails function in the DatabaseConnector package.

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'.

cohortTable

The name of the table that will be created in the work database schema. This table will hold the exposure and outcome cohorts used in this study.

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 (/)

maxCores

How many parallel cores should be used? If more cores are made available this can speed up the analyses.

Details

This function will synthesize positve controls based on the negative controls. The simulated outcomes will be added to the cohort table.


ABMI/ARBvsCCBinConfirmedCovid documentation built on April 2, 2020, 9:08 p.m.