I want to statistically compare the mean values from eight different groups. I do not have the raw data, but have the sample size, mean and associated standard deviation and standard error. I was wondering if there was any code in R to do the ANOVA test on summary data, as well as the subsequent post-hoc, pair-wise comparisons.
n <- c(796,95,245,1645,701,1157,211,144)
means <- c(648,680,569,602,594,596,606,623)
sd <- c(146.3,90.5,61.2,98.9,113.6,106.8,87.8,76.9)
#Assigning the standard deviation and the sample size for each sample
s.x <-146.3
n.x <-796
s.y <-90.5
n.y <-95
#Conducting the t-test with summary statistics
tsum.test(mean(648), s.x, n.x, mean(680), s.y, n.y)
rpsychi
package, which does at least some of what you want, with theind.oneway.second
function for the ANOVA. $\endgroup$