View source: R/linear_model_method.R
fixed_effect_estimators | R Documentation |
Fit regressions with block fixed effects (and a single treatment parameter). Calculate standard errors in a variety of ways.
fixed_effect_estimators(
Yobs,
Z,
B,
siteID = NULL,
data = NULL,
block.stats = NULL,
control_formula = NULL
)
Yobs |
Name of outcome variable (assumed to exist in data) |
Z |
vector of assignment indicators (1==treated) |
B |
block ids |
siteID |
If not null, name of siteID that has randomization blocks |
data |
Dataframe of the data to analyse. |
block.stats |
Table of precomputed block-level statistics (optional, for speed concerns; this gets precomputed in compare_methods). |
control_formula |
The control_formula argument must be of the form ~ X1 + X2 + ... + XN. (nothing on left hand side of ~) |
For the club sandwich estimation ("Club"), see code proposed at https://www.jepusto.com/handmade-clubsandwich/
Dataframe of results for different estimators.
Other linear model estimators:
interacted_linear_estimators()
,
linear_model_estimators()
,
weighted_linear_estimators()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.