Skip to contents

Prepares the population data frame with necessary columns for simulation.

Usage

setup_pop_frame(df, strata_vars)

Arguments

df

A data frame representing the population.

strata_vars

A character vector of variable names to define strata.

Value

A data frame summarising the population by stratum.