I am trying to calculate the Standardized Incidence Ratio. I want to keep the patientdata as flexible as possible, so that i can draw a graph of how the SIR is evolving while selecting age, sex, region of the patient. This means the calculation has to be done in the frontend. Anyone done this before and feel like sharing?
See the link for the formula: