Description Usage Arguments Value Examples
The main match controls function to match controls using cem and generate an html report and a list of matched controls
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"))
|
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 |
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) |
1 | #Not run
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.