new_manual_strata: New Manual Strata

Description Usage Arguments Value

View source: R/strata_object_constructors.R

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

1
2
3
4
5
6
7
8
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 May 27, 2021, 10:13 p.m.