combineSubgroups {biostatUZH} | R Documentation |
Combines summary data for a continuous outcome given in subgroups
combineSubgroups(n, means, variances, treatment)
n |
vector with sample sizes in each subgroup. |
means |
vector with sample means |
variances |
vector with sample variances |
treatment |
Indicates which entries of each vector belong to the treatment group |
Gives overall difference in means with a standard error.
Leonhard Held
combineSubgroups(n=c(10,20,30,40), means=c(12,11,10,9), variances=c(3,4,3,4), treatment=c(2,4))