Learn R Programming

PatientLevelPrediction (version 3.0.0)

getCovariateData: Get the covaridate data for a cohort table

Description

This function executes some SQL to extract covaraite data for a cohort table

Usage

getCovariateData(connection, cdmDatabaseSchema,
  oracleTempSchema = cdmDatabaseSchema, cohortTable = "#cohort_person",
  cdmVersion = 5, covariateSettings)

Arguments

connection

Can also use an existing connection rather than the connectionDetails

cdmDatabaseSchema

The name of the database schema that contains the OMOP CDM instance. Requires read permissions to this database. On SQL Server, this should specifiy both the database and the schema, so for example 'cdm_instance.dbo'.

oracleTempSchema

For Oracle only: the name of the database schema where you want all temporary tables to be managed. Requires create/insert permissions to this database.

cohortTable

The temp table containing the cohort of people

cdmVersion

The version of the CDM (default 5)

covariateSettings

An object of type covariateSettings as created using the createCovariateSettings function in the FeatureExtraction package.

Value

Returns the covariates for the people in the temp table