create_cells: Create data frame with all distinct cells, and their sample...

Description Usage Arguments

View source: R/multical.R

Description

Create data frame with all distinct cells, and their sample and target counts

Usage

1
create_cells(formula, target_count, data)

Arguments

formula

Formula of the form sample_count ~ covariates, where sample_count is whether or not an individual responded (with individual-level data) or the number of respondents in the cell (with cell-level data) and covariates are the covariates to calibrate on

target_count

Name of column with indicators for whether an individual is in the target population (with individual-level data) or the target counts for each cell (with cell-level data)

data

Dataframe with covariate information, sample and target counts


ebenmichael/multical documentation built on Dec. 20, 2021, 3:12 a.m.