My data looks like this
structure(list(Outcome1 = c(3L, 4L, 5L, 7L, 2L, 8L, 9L, 6L, 10L,
1L), Outcome2 = c(13L, 12L, 16L, 20L, 15L, 17L, 18L, 14L, 11L,
19L), Outcome3 = c(30L, 22L, 26L, 21L, 29L, 28L, 27L, 25L, 23L,
24L), Response1 = c(35L, 36L, 34L, 32L, 40L, 38L, 39L, 31L, 37L,
33L), Response2 = c(49L, 46L, 47L, 44L, 48L, 50L, 41L, 42L, 43L,
45L), Response3 = c(55L, 58L, 54L, 52L, 51L, 56L, 57L, 59L, 53L,
60L)), class = "data.frame", row.names = c(NA, -10L))
I would like to carry out a series of linear regressions between the outcomes and responses. For example Outcome1 ~ Response1, Outcome1 ~ Response2, Outcome1 ~ Response3, Outcome2 ~ Response1 and so on. I would then like to extract the p-values of these regressions in a tabular format and have them listed next to their respective regression models. Could this also be done to extract correlation coefficients?
For example
Model p-value Correlation Coefficient
Outcome1 ~ Response1 0.041 0.43
Thanks for taking the time to read this post.