Programming the statistical procedures from SAS

PROC HPMIXED: Including baseline in estimate statement

Reply
Highlighted
Occasional Contributor
Posts: 10

PROC HPMIXED: Including baseline in estimate statement

Hello,

 

I would like to add the baseline informations to the estimate statement. There are following variables:

  • value: measured value
  • time: v1, v2, v3
  • group: g1, g2, g3

e.g. at the first interaction. Here I estimate the difference of (g3[v2] - g3[v1]) - (g1[v2] - g1[v1]), but without baseline information of g3 and g1. Can I add this information somewhere? I tried to add "time*group 1 0 0 0 0 0 1 0 0" but there is no difference in the results.

Note: e.g. at the second interaction. Here v2 would count as baseline.

 

 

	PROC HPMIXED DATA=Data method=reml;
		 class ID group time;
		 model value = time time*group / solution cl;
random intercept time / subject=ID type=un;
estimate 'intercept' intercept 1; estimate 'Int. time*group g3 vs. g1 v2-v1' time*group 1 -1 0 0 0 0 -1 1 0 / cl; estimate 'Int. time*group g3 vs. g1 v3-v2' time*group 0 1 -1 0 0 0 0 -1 1 / cl; estimate 'Int. time*group g3 vs. g1 v3-v1' time*group 1 0 -1 0 0 0 -1 0 1 / cl; estimate 'Int. time*group g3 vs. g2 v2-v1' time*group 0 0 0 1 -1 0 -1 1 0 / cl; estimate 'Int. time*group g3 vs. g2 v3-v2' time*group 0 0 0 0 1 -1 0 -1 1 / cl; estimate 'Int. time*group g3 vs. g2 v3-v1' time*group 0 0 0 1 0 -1 -1 0 1 / cl; estimate 'Int. time*group g2 vs. g1 v2-v1' time*group 1 -1 0 -1 1 0 0 0 0 / cl; estimate 'Int. time*group g2 vs. g1 v3-v2' time*group 0 1 -1 0 -1 1 0 0 0 / cl; estimate 'Int. time*group g2 vs. g1 v3-v1' time*group 1 0 -1 -1 0 1 0 0 0 / cl; RUN;

I am thankful for every hint.

 

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