Count observations by stratum
Usage
count_strata(
data,
strata_varnames,
biomarker_names_var = get_biomarker_names_var(data)
)Arguments
- data
a
"pop_data"object (e.g., fromas_pop_data())- strata_varnames
a vector of character strings matching colnames to stratify on from
data- biomarker_names_var
a character string indicating the column of
dataindicating which biomarker is being measured
Value
a tibble::tbl_df counting observations by stratum