weighted_linear_estimators: Survey-weighted adjusted linear regression

View source: R/linear_model_method.R

weighted_linear_estimatorsR Documentation

Survey-weighted adjusted linear regression

Description

Use survey weight regression to reweight blocks to target unbiased ATE estimators.

Usage

weighted_linear_estimators(
  formula,
  control_formula = NULL,
  siteID = NULL,
  data,
  scaled.weights = TRUE,
  weight.method = c("survey", "precision")
)

Arguments

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.

Value

Dataframe of results for different estimators.

See Also

Other linear model estimators: fixed_effect_estimators(), interacted_linear_estimators(), linear_model_estimators()


lmiratrix/blkvar documentation built on Nov. 18, 2024, 1:27 p.m.