View source: R/strata_object_constructors.R
new_auto_strata | R Documentation |
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.
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 )
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 |
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. |
a basic auto_strata
object
auto_stratify
, a function which calls this constructor
to produce an auto_strata
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.