get_case_count_by_source: Get case-control status (Any) by data sources

get_case_count_by_sourceR Documentation

Get case-control status (Any) by data sources

Description

Given a phenotype, a list of episode data and reference dates per individual, identify cases and control status as of *reference date" by source.

Usage

get_case_count_by_source(
  definition,
  lst.data,
  df.data.settings,
  vct.identifiers,
  remove_event0 = TRUE
)

Arguments

definition

phenotype/trait specified in definition table (a row in the table)

lst.data

list of data table with all episode data

df.data.settings

data frame containing data settings

vct.identifiers

character vector listing the identifiers in the cohort. This is used to define controls if reference_date is not given


niekverw/ukbpheno documentation built on Oct. 30, 2023, 9:17 p.m.