new_auto_strata: New Autostrata

View source: R/strata_object_constructors.R

new_auto_strataR Documentation

New Autostrata

Description

Basic constructor for an auto_strata object. These objects hold all the information associated with a dataset that has been stratified via auto_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_auto_strata(
  outcome,
  treat,
  analysis_set = NULL,
  call = NULL,
  issue_table = NULL,
  strata_table = NULL,
  prognostic_scores = NULL,
  prognostic_model = NULL,
  pilot_set = NULL
)

Arguments

outcome

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

treat

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

analysis_set

the data set which will be stratified

call

the call to auto_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 prognostic score quantile bin this corresponds to

prognostic_scores

a vector of prognostic scores.

prognostic_model

a model for prognosis fit on a separate data set.

pilot_set

the set of controls used to fit the prognostic model. These are excluded from subsequent analysis so that the prognostic score is not overfit to the data used to estimate the treatment effect.

Value

a basic auto_strata object

See Also

auto_stratify, a function which calls this constructor to produce an auto_strata object.


stratamatch documentation built on March 31, 2022, 9:07 a.m.