0

I was given two sets of measurements of air particulates (24 samples, taken hourly) at two locations. I know how to test whether the means are the same (they are not), but I'm tasked with testing the Ho that the particulate concentration is higher at (building1_air) than it is at (building2_air). This is my first time working with R software (or any, for that matter). What should the t-test command (if that's the right term) look like to compare the two sets of samples? I'm grateful for any help.

3 Answers3

1
t.test(building1_air,building2_air, alternative="g")

because your Alternative Hyp. is not the default one (wich is two tail test)

Davide Passaretti
  • 2,741
  • 1
  • 21
  • 32
0

From Quick-R:

t.test(building1_air,building2_air)
bgschiller
  • 2,087
  • 1
  • 16
  • 30
0

Are these counts of particulates? if so, a poisson test might be what you are looking for. for a single sample you can use the function poisson.test to create confidence intervals. To compare rates, you can use binom.test

Ian Fellows
  • 17,228
  • 10
  • 49
  • 63