BookmarkSubscribeRSS Feed
SusieQ324
Fluorite | Level 6
I have 2 cohorts with counts of an event for each. But I've calculated 3 different relative percentages - % of the overall cohort, % of all those patients who have evidence of the event and % of patients in a similar age group. So the denominator in the % changes for each.

I've done a chi-squared test but I don't think that's entirely what I want. Basically I want to test the 2-sample proportion values for each type of proportion to test whether p(cohort1)=p(cohort2) and I'm just not thinking clearly.

What am I missing??? Or doesn't it matter?

Sue
2 REPLIES 2
Reeza
Super User
I think rather than %, calculate freq/counts and then you can use a proc freq to get the difference between cohorts for the different ratios and calculate odds ratio between the two.

Hopefully someone can verify that's correct...
Ksharp
Super User
How about:
[pre]
proc freq data=data;
tables a*b /chisq riskdiff;
run;
[/pre]
riskdiff will give difference in proportion and its limited interval.


Ksharp

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register 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
  • 1635 views
  • 0 likes
  • 3 in conversation