I am a novice in statistics so pardon my rather simple question.
I have a retrospective case-control study, I would like to show the rate of admissions (ie number of admissions per year) of my cases and controls. I have individual level data on a = total number of admissions of a given patient during follow up period y = total number of years of follow up of a given patient
and I have n1 = number of cases and n2 = number of controls.
If I would like to show the mean number of admissions per year of the cases, and the mean number of admissions of controls per year (with SDs), should I be doing
mean= sum(a/y)/n for both groups, and standard deviation? in R I can easily do this by calculating a new column r (admission rate of an individual) = a/y, then do mean(r) and sd(r)
or should it be
mean= sum(a)/sum(y) for both groups (sum of n1 admissions, divided by sum of y1 years of follow up for cases; and sum of n2 admissions, divided by sum of n2 years of follow up for controls) - however, how do I derive standard deviation from this?