Programming the statistical procedures from SAS

Trend Analysis in proc mixed in Estimate Statement

Reply
Contributor
Posts: 42

Trend Analysis in proc mixed in Estimate Statement

proc mixed data= dataset ;

class id group;

model y= group time group*time / solution;

random int time/subject=id ;

estimate "trend test"  group*time 3 1 -1 -3/e cl divisor  = 3;

run;

Question:

variable group = 1,2,3,4, time is continuous time variable in years.

1. how to do the trend test in proc mixed for "group"?

2. how to calculate the contrast coefficients and value of divisor for this trend analysis in the estimate statement?


Thank you .

Ask a Question
Discussion stats
  • 0 replies
  • 218 views
  • 0 likes
  • 1 in conversation