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
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
0 Response to Calculate Relative Risk with 95% CI from two-way table
Post a Comment