block_estimator: Block variance estimation function.

View source: R/blocked_experiment_method.R

block_estimatorR Documentation

Block variance estimation function.

Description

This function takes observed data and returns a treatment effect estimate, variance estimate and some summary info about the block structure.

Usage

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
)

Arguments

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


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