View source: R/calc_summary_stats.R
calc_summary_stats | R Documentation |
Given dataframe or list of variables, return table of stats for each randomization block.
calc_summary_stats(Yobs, Z, B, data = NULL, siteID = NULL, add.neyman = FALSE)
Yobs |
Name of outcome variable (assumed to exist in data) |
Z |
vector that indicates if outcome is under treatment or control |
B |
block ids |
data |
Dataframe with defined Yobs, Z, and B variables. |
siteID |
If not null, name of siteID that has randomization blocks nested inside. |
add.neyman |
If TRUE, add block-specific SEs using Neyman formula of $s^2_T/n_t + s^2_C/n_c$ as column in output. |
dataframe with summary statistics by block
Other calc_summary_stats:
calc_summary_stats_formula()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.