I'm looking to test for correlation between specific events (mostly holidays) and a university's covid positivity rates. I've been using ggplot2 but am not sure of how I should look at the actual correlation values between the data, and how I could overlay the events onto the plot as markers on the plot.
Asked
Active
Viewed 55 times
0
-
1Welcome on SO! For questions unrelated to programming and more about methods ask on: https://stats.stackexchange.com/ – MonJeanJean Jul 16 '21 at 14:47
-
Time-series ordinary least squares regression is an option – Bill O'Brien Jul 16 '21 at 14:51
-
Maybe use vertical lines for your markers? This post shows how: https://stackoverflow.com/questions/19622063/adding-vertical-line-in-plot-ggplot – dmedine Jul 19 '21 at 05:57