I know that if I have a set of data, I can run t.test to do a T test. But I only know the count, mean and standard deviation for each set. I’m sure there must be a way to do this in R, but I can’t figure it out. Any help?
I know that if I have a set of data, I can run t.test
Share
If you don’t want to recode the formula yourself, you can always simulate data set that has the exact summaries that you have, then analyse the simulated data. The mvrnorm function in the MASS package can be used to generate normal data with a given mean and variance (set the empirical argument to TRUE).