Use PROC FREQ, and check its documentation 's example ,especial about Relative Risk Test.
proc freq data=have;
table Medicine*Yes_No / Chisq riskdiff ;
run;
@oves wrote:
Hi,
Let's assume:
Medicine A heals 60 of of 100.
Testing if medicine B is better.
Using level 0.05.
Wish to find the lowest number of healed to say: Yes, it is better!
The answer is 68, but...
How to best calculate this in SAS (using EG 7.15)?oves
That's likely some basic math so you could take the formula and calculate it manually but I would likely be checking PROC POWER to see if it could calculate that number. Are you assuming that the groups are equally sized as well? Ie 100 people? I believe the denominator may be important as well. If it heals 68 out of 1000 that's different than 68 out of 100 so you may need to be looking at rates instead.
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
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.