getMeasurementCohortCovariateData: Extracts covariates based on measurements and cohort

Description Usage Arguments Details Value

View source: R/MeasurementCohortCovariateCode.R

Description

Extracts covariates based on measurements and cohort

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
getMeasurementCohortCovariateData(
  connection,
  oracleTempSchema = NULL,
  cdmDatabaseSchema,
  cdmVersion = "5",
  cohortTable = "#cohort_person",
  rowIdField = "row_id",
  aggregated,
  cohortId,
  covariateSettings
)

Arguments

connection

The database connection

oracleTempSchema

The temp schema if using oracle

cdmDatabaseSchema

The schema of the OMOP CDM data

cdmVersion

version of the OMOP CDM data

cohortTable

the table name that contains the target population cohort

rowIdField

string representing the unique identifier in the target population cohort

aggregated

whether the covariate should be aggregated

cohortId

cohort id for the target population cohort

covariateSettings

settings for the covariate cohorts and time periods

Details

This extracts measurement values for a concept set of measurement concept ids within some cohort

Value

The models will now be in the package


ohdsi-studies/PCE documentation built on Feb. 15, 2021, 6:33 a.m.