Hello! I learned field epi starting with Excel, Epi Info, and Stata. With Epi Info and Stata in particular, it is quite easy to teach the basics of calculating OR/RR and showing 2x2 tables. For example, in Epi Info you can use the visual dashboard or in Stata you can simply do
cc casestatus riskfactor to show a 2x2 table with CI and p-value calculations. To do a stratified analysis, you can do
cc casestatus riskfactor, by(confounder). In R, it seems much less straightforward. Is there a package where you can do something like
linelist %>% cc(casestatus, riskfactor) to produce something similar?
Though this can be done relatively quickly with tbl_uvregression() with multiple risk factors, I find that showing 2x2 tables is much more visual and intuitive when teaching about case-control and cohort studies for the first time. I’m trying to see how R can be incorporated as early as possible into the FETP curriculum like merging it with the topics on epidemiologic study designs and biostatistics.
No specific dataset here but I just want to spin this off from the other discussion on calculating RR/OR in gtsummary.