run t-test on my data

Anyone to help with analysis. I would like to know if the two datasets are statistically different or not
Area Recent Previous
1 A 1629.2 2627.2
2 B 5171.9 6759.7
3 C 29157.7 43021.5
4 D 16723.3 25762.5
5 E 25019.9 46898.5

Hi,

df <- tibble::tribble(
        ~Area, ~Recent, ~Previous,
          "A",  1629.2,    2627.2,
          "B",  5171.9,    6759.7,
          "C", 29157.7,   43021.5,
          "D", 16723.3,   25762.5,
          "E", 25019.9,   46898.5
        )


t.test(df$Recent, df$Previous, paired = TRUE)

Have a read on interpreting the results: t-Tests (berkeley.edu)

Note: edited following @FJCC's comment

Also, next time have a look at this in terms of reproducible examples

The column names of Recent and Previous makes me wonder if the paired argument should be set to TRUE.

t.test(df$Recent, df$Previous, paired = TRUE)
1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.