new_manual_strata: New Manual Strata

View source: R/strata_object_constructors.R

new_manual_strataR Documentation

New Manual Strata

Description

Basic constructor for an manual_strata object. These objects hold all the information associated with a dataset that has been stratified via manual_stratify. This object may be passed to strata_match to be matched or it may be unpacked by the user to be matched by other means.

Usage

new_manual_strata(
  treat = character(),
  covariates = character(),
  analysis_set = data.frame(),
  call = call(),
  issue_table = data.frame(),
  strata_table = data.frame()
)

Arguments

treat

a string giving the name of the column where treatment information is stored

covariates

a character vector with the names of the categorical columns on which to stratify

analysis_set

the data set which will be stratified

call

the call to manual_stratify used to generate this object

issue_table

a table of each stratum and potential issues of size and treat:control balance

strata_table

a table of each stratum and the covariate bin this corresponds to

Value

a basic manual_strata object


raikens1/stratamatch documentation built on April 1, 2022, 9:48 p.m.