Skip to contents

Generate CONSORT Attrition Flowchart Object

Usage

generate_consort_attrition(
  con = NULL,
  cohort_data = NULL,
  cohort_id = 1L,
  steps = NULL
)

Arguments

con

Active DuckDB connection (optional if cohort_data carries attrition).

cohort_data

A data.frame with an "attrition" attribute, or an attrition table.

cohort_id

Evaluated cohort definition ID.

steps

Optional list of list(step_name, query) pairs.

Value

An object of class consort_attrition with methods to_mermaid(), to_latex(), to_markdown().