declare_potential_outcomes | R Documentation |
Deprecated. Please use the potential_outcomes function within a declare_model declaration.
declare_potential_outcomes(
...,
handler = potential_outcomes_handler,
label = NULL
)
potential_outcomes_internal.formula(
formula,
conditions = c(0, 1),
assignment_variables = "Z",
data,
level = NULL,
label = outcome_variable
)
potential_outcomes_internal.NULL(
formula = stop("Not provided"),
...,
data,
level = NULL
)
... |
arguments to be captured, and later passed to the handler |
handler |
a tidy-in, tidy-out function |
label |
a string describing the step |
formula |
a formula to calculate potential outcomes as functions of assignment variables. |
conditions |
see |
assignment_variables |
The name of the assignment variable. Generally not required as names are taken from |
data |
a data.frame |
level |
a character specifying a level of hierarchy for fabricate to calculate at |
a function that returns a data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.