SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
westbestern
Obsidian | Level 7

I'm using PROC FREQ to calculate associations between potential confounders, like age, and retinopathy. When I use PROC FREQ on a variable that has more than 2 groups, it won't show me prevalence ratio or 95% CI like it does with a two-level variable such as sex. For example, I want to use PROC FREQ to find the association between the age ordinal variable (age 30-60=1, age 61-70=2, >70=3) and retinopathy (0=no, 1=yes)

I did PROC FREQ age*retinopathy/no col nopercent all; run;

It gives me the chi-square but no CI or relative risk. How do I fix this?

1 REPLY 1
sbxkoenk
SAS Super FREQ

Hello,

 

I would adopt a modelling approach, with PROC GENMOD for example.

 

See here (I haven't read the paper ! , just Googled it in order to try to give you an example) :

Proper Estimation of Relative Risk Using PROC GENMOD in Population Studies
Kechen Zhao, University of Southern California, Los Angeles, California

https://www.lexjansen.com/wuss/2013/81_Paper.pdf

 

Good luck,

Koen

sas-innovate-white.png

Our biggest data and AI event of the year.

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.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1207 views
  • 1 like
  • 2 in conversation