BookmarkSubscribeRSS Feed
EMB
Calcite | Level 5 EMB
Calcite | Level 5

Hello,

 

I am posting my question again with some additional information.

 

I wish to study trends in age over time in a study including incident cases of a specific disease. Data were collected during 4 short periods 2 years apart. Each period included different participants (>1000 each).  As part of the descriptive analysis I would like to look at trends over time in age of the diagnosed individuals and show p for linear trend.

Would the following be correct for the evaluation of linear trend in age of diagnosed individuals? Any other suggestion?

 

proc glm;
class (time period);
model AGE=(time period);
contrast 'linear' (time period) -3 -1 1 3;
run;

 

Thanks!

1 REPLY 1
pau13rown
Lapis Lazuli | Level 10

the cochran armitage trend test is a neat one you could likely use: https://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_freq_sect03...

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 Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1332 views
  • 0 likes
  • 2 in conversation