new_manual_strata function

New Manual Strata

New Manual Strata

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.

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

Returns

a basic manual_strata object

  • Maintainer: Rachael C. Aikens
  • License: GPL-3
  • Last published: 2022-03-31