Programming the statistical procedures from SAS

Statistical significant change in median age over time

Reply
Occasional Contributor
Posts: 13

Statistical significant change in median age over time

Hi everyone,

I am hoping to get your expertise on showing whether the change in median age over time is statistically different.

For example, here is what my data looks like:

Year2000200120022003200420052006
Median Age20221926232429

I would appreciate any help!  What statistical test should I use and please advise on the corresponding SAS code.

Many thanks!

Respected Advisor
Posts: 2,655

Re: Statistical significant change in median age over time

With only this data, I think the first statistical test you might look at is whether there is a significant trend in the data, using linear regression.  Without the raw data or error estimates at each time point, I don't see any other way to attack this.  Any of the modeling procedures (REG, GLM, MIXED, GENMOD, GLIMMIX, HPMIXED, CALIS) could do this.

data have;

input year med_age;

datalines;

2000 20

2001 22

2002 19

2003 26

2004 23

2005 24

2006 29

;

proc reg data=have;

model med_age=year;

run;

This should get you started.

Steve Denham

Ask a Question
Discussion stats
  • 1 reply
  • 304 views
  • 0 likes
  • 2 in conversation