create_demographic_table: Create a demographics data frame of unique stratification...

View source: R/stratification.R

create_demographic_tableR Documentation

Create a demographics data frame of unique stratification levels

Description

Takes all stratifications requested in par_tab and checks antibody_data for all unique levels of that stratification. If no stratifications are requested, then returns a data frame with a single row and a column called "all" with value 0.

Usage

create_demographic_table(antibody_data, par_tab)

Arguments

antibody_data

the antibody data data frame, see example_antibody_data.

par_tab

the parameter table, including a column called stratification which is NA if no stratification is requested, for with a character value matching an entry in antibody_data

Value

a data frame of unique stratification level combinations. Each column is a stratification variable, and each row is a unique combination of levels


adamkucharski/serosolver documentation built on June 12, 2025, 9:08 a.m.