Skip to contents

Starts a new STROBE derivation log for a cohort by recording the initial data frame's size. This function must be called once, before any filtering steps. Internally, it creates the first row of the tracking table and resets the step counter.

Usage

strobe_initialize(data, inclusion_label = "Initial eligible cohort")

Arguments

data

A data frame representing the initial eligible cohort.

inclusion_label

A human-readable label describing the initial cohort. This will appear in the main path of the STROBE diagram. Default is "Initial eligible cohort".

Value

The same data frame, unchanged.

Examples

if (FALSE) {
df <- strobe_initialize(my_data, inclusion_label = "Adults age 18+ in registry")
}