Hello,
i have to variables (sex (male/female) & hypertens) and would like to calculate the 95% CI of the Relative Risk comparing female and male for hypertens. First I did a two-way table of both variables:
Code:
 tab hypertens sex, row chi
Is there now a way to calculate the CI of Relative Risk (positive male / positive female) with the stored results in r from the tab command above? I tried a few ways and could not figure it out.
Thank you very much for your help!


Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input float(sex_num hypertens)
1 0
1 1
0 0
1 0
1 0
0 0
0 0
0 0
1 0
1 1
0 0
0 1
1 0
1 1
1 0
0 1
0 0
0 0
1 1
1 0
0 1
0 0
1 1
1 0
0 0
0 0
0 0
0 1
1 1
1 1
0 0
1 0
0 1
1 0
1 1
1 0
1 0
1 1
0 0
end
label values sex_num sex_num
label def sex_num 0 "female", modify
label def sex_num 1 "male", modify