matchcontrols: matchcontrols

Description Usage Arguments Value Examples

Description

The main match controls function to match controls using cem and generate an html report and a list of matched controls

Usage

1
2
3
matchcontrols(d, case_patientset_name = "None Given",
  controlpool_patientset_name = "None Given", controls_to_match = 1,
  match_variables = c("age", "gender", "race"))

Arguments

d

A data frame of patients with matching variables and cohort field

case_patientset_name

Name of the case patient set (for report)

controlpool_patientset_name

Name of the control pool patient set (for report)

controls_to_match

Number of controls to match to each patient set

match_variables

A string vector of variable names to use for matching

Value

A list with the elements

report_text

String of the html report

html_report

Full path to html report file in tmp directory

match_data

The full patient data frame with match strata and which controls were matched

cem_data

The cem object from the cem function.

matched_controls

The final list of matched controls (can be used to create an i2b2 patientset)

Examples

1
#Not run

vcastro/Ri2b2matchcontrols documentation built on May 29, 2019, 11:57 a.m.