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
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.