BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I need some procedure to calulate risk ratio and confidence interval for two treatment groups A and B , I am very new to Statistics, so kindly help.

The data is like as shown below:

EVENT Treatment_A Treatment_B
ABC 19 29

And i Need to calculate RR and CI as follows

EVENT TRT_A (N=58) TRT_B(N=73) RR(95% CI Lower-Upper)
ABC 20 21 1.21(0.76,1.93)
2 REPLIES 2
statsplank
Calcite | Level 5
Hi sagar,

Here is one way to calculate RR and it's 95% CI:

data risk;
input trt $ outcome $ count;
datalines;
A yes 19
A no 39
B yes 29
B no 44
;

proc freq data=risk;
table trt*outcome/relrisk;
weight count;
run;
deleted_user
Not applicable
Thank you so much.

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 2102 views
  • 0 likes
  • 2 in conversation