compare_methods_variation: Compare different estimates of cross site variation.

View source: R/compare_methods_variation.R

compare_methods_variationR Documentation

Compare different estimates of cross site variation.

Description

Given a dataframe, use the different methods to pull out point estimates for cross site variation and (if desired) pvalues and return them all.

Usage

compare_methods_variation(
  Yobs,
  Z,
  B,
  siteID = NULL,
  data = NULL,
  include_testing = TRUE,
  include_Q_estimate = TRUE,
  long_results = FALSE
)

Arguments

Yobs

vector observed outcomes (or column name in data)

Z

vector of assignment indicators (1==treated) (or column name in data)

B

vector of block ids (or column name in data)

siteID

if blocks B nested in sites, then pass the site indicator.

data

frame holding Y, Z, B and (possibly a column with name specified by siteID).

include_testing

Include tests for null of no cross site variation.

include_Q_estimate

Include a estimate for tau_hat from Q method (involves calculating the full confidence interval so potentially time intensive).

long_results

TRUE means each estimator gets a line in a data.frame. FALSE gives all as columns in a 1-row dataframe.


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