View source: R/compare_methods_variation.R
compare_methods_variation | R Documentation |
Given a dataframe, use the different methods to pull out point estimates for cross site variation and (if desired) pvalues and return them all.
compare_methods_variation(
Yobs,
Z,
B,
siteID = NULL,
data = NULL,
include_testing = TRUE,
include_Q_estimate = TRUE,
long_results = FALSE
)
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.