View source: R/estimate_ATE_RIRC.R
estimate_ATE_RICC | R Documentation |
This model has a single treatment coefficient, and a random intercept for the site control average. So it is analogous to a fixed effect model, but with a random effect.
estimate_ATE_RICC(Yobs, Z, B, data = NULL, REML = TRUE, control_formula = NULL)
estimate_ATE_RIRC(
Yobs,
Z,
B,
data = NULL,
include_testing = FALSE,
REML = !include_testing,
keep_EB_estimates = TRUE,
pool = FALSE,
control_formula = NULL
)
Yobs |
Name of outcome variable (assumed to exist in data) |
Z |
vector of assignment indicators (1==treated) |
B |
Name of the block indicator. |
data |
Dataframe with all needed variables. |
REML |
Logical, Restricted maximum likelihood or maximum likelihood estimation. Default of TRUE if include_testing = FALSE and FALSE otherwise. Note that FIRC can fail badly in estimating cross-site variation when REML=FALSE. |
control_formula |
The control_formula argument must be of the form ~ X1 + X2 + ... + XN. (nothing on left hand side of ~) |
include_testing |
Logical Include likelihood ratio test for cross-site treatment variation. |
keep_EB_estimates |
TRUE means returned object has EB estimates. FALSE means do not keep them. |
pool |
TRUE means tx and co have same reBual variance. FALSE gives seperate estimates for each (recommended, default). |
There is no test for cross site variation for this method, since we assume none.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.