View source: R/combineSubgroups.R
combineSubgroups | R Documentation |
Combines mean estimates, standard errors, and sample sizes of several treatment and placebo groups into an overall treatment effect and its standard error. Assumes normally distributed estimates.
combineSubgroups(n, means, se, treatment)
n |
Vector with sample sizes in each subgroup. |
means |
Vector with sample means in each subgroup.
Has to be of same length as |
se |
Vector with sample standard errors in each subgroup.
Has to be of same length as |
treatment |
Index with intagers between 1 and |
Overall difference in means with a standard error.
Leonhard Held
combineSubgroups(n = c(10, 20, 30, 40), means = c(12, 11, 10, 9),
se = c(3, 4, 3, 4), treatment = c(2, 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.