View source: R/linear_model_method.R
weighted_linear_estimators | R Documentation |
Use survey weight regression to reweight blocks to target unbiased ATE estimators.
weighted_linear_estimators(
formula,
control_formula = NULL,
siteID = NULL,
data,
scaled.weights = TRUE,
weight.method = c("survey", "precision")
)
formula |
Specification of outcome, treatment, and block ID variables as a formula of form "Yobs ~ Z*B" (order of variables is important). |
control_formula |
The control_formula argument must be of the form ~ X1 + X2 + ... + XN. (nothing on left hand side of ~) |
siteID |
If not null, name of siteID that has randomization blocks |
data |
Dataframe of the data to analyse. |
scaled.weights |
Logical Scale the weights by overall proportions of treated and control. |
weight.method |
Use survey package (svgglm) or classic OLS (lm) for model fitting. |
Dataframe of results for different estimators.
Other linear model estimators:
fixed_effect_estimators()
,
interacted_linear_estimators()
,
linear_model_estimators()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.