Hi fellow users!
I am looking at the association between antibiotic exposure (exposure var) and risk of diabetes (outcome). Antibiotics are measured as a number of courses and are a continuous variable. I also have created some predefined categories of antibiotics courses. These are as follows: 0 (no exposure); <=3 courses, <= 6 courses, <=9 courses and >= 10 courses.
Now I have already got the hazard ratios, but I would like to know if there is a trend (positive) in the HR with increasing categories of antibiotics. Please suggest what my below syntax should look like when I am testing for trends.
Syntax:
proc phreg data= dataset;
model time * diab(0) = abx_cat5 / rl;
run;
Hello,
Maybe there's a solution within PROC PHREG (I don't know PROC PHREG well enough).
Otherwise I think you can use PROC FREQ for trend test.
The below info is taken from
Usage Note 30333: FASTats: Frequently Asked-For Statistics
https://support.sas.com/kb/30/333.html
Koen
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.