cohort_selection_diagram: Cohort Selection Diagram

View source: R/cohort_selection_diagram.R

cohort_selection_diagramR Documentation

Cohort Selection Diagram

Description

create cohort selection diagram based on apply_all_filters function. This is often used to understand how many cases and surgeons are removed in each filter

Usage

cohort_selection_diagram(data, variables = model_vars, yoe_cutoff = 35, ...)

Arguments

data

original data

variables

variables that need to be used to exclude missing values, for example years of experience. If need to add multiple variables, use syntax c("var1", "var2")

yoe_cutoff

the max years of experience included in the dataset

...

UMCSTaR/medicareAnalytics documentation built on July 13, 2022, 11:33 p.m.