View source: R/blocked_experiment_method.R
block_estimator | R Documentation |
This function takes observed data and returns a treatment effect estimate, variance estimate and some summary info about the block structure.
block_estimator(
Yobs,
Z,
B,
data = NULL,
method = c("hybrid_m", "hybrid_p", "plug_in_big", "rct_yes_all", "rct_yes_small",
"rct_yes_mod_all", "rct_yes_mod_small"),
throw.warnings = TRUE
)
Yobs |
vector observed outcomes |
Z |
vector of assignment indicators (1==treated) |
B |
block ids |
data |
matrix of Y, Z, B, as alternative to using vectors |
method |
is method of variance estimation, defauly "hybrid_m" |
throw.warnings |
TRUE means throw warnings if the hybrid estimators are |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.