I am working with a dataset much like the one you see here.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(id pre_event post_event age no_other) 1 3 2 20 1 1 1 0 25 2 1 1 2 29 3 2 0 3 30 1 3 4 1 25 1 4 3 9 28 1 5 5 10 27 1 6 2 2 28 1 7 0 1 26 1 7 4 1 38 2 end
pre_event and post_event are the numbers of visits to a specific city.
Now what I want to do:
1) calculate the OR between post_event vs pre_event (using Stata to do it, as I can calculate it fairly easy (OR=ad/bc))
2) i would also like to calculate Incidence Rate Ratio but correct for the age and no_other
I cannot quite wrap my head my head around it, but I know that the exposure time for pre_event is 12months and the exposure time for post_event is 12 months.
hope you can help.
Thanks
Lars
0 Response to OR, IRR and multivariate analysis
Post a Comment