assign_prob_and_strata {RobinCID} | R Documentation |
Assign Probability according to Design
Description
Assign Probability according to Design
Usage
assign_prob_and_strata(
data,
estimand,
design = list(randomization_var_colnames = NULL, randomization_table = NULL),
method,
estimated_propensity = TRUE,
stratify_by = NULL
)
Arguments
data |
( |
estimand |
( |
design |
( |
method |
estimation method. |
estimated_propensity |
Whether to use estimated propensity score. |
stratify_by |
The column name of stratification variable in |
Details
design
has two elements: randomization_var_colnames
(vector
) and randomization_table
(data.frame
)
Value
A new data
with columns of the treatment assignment probability.
[Package RobinCID version 1.0.0 Index]