proc genmod data=allthree order=formatted; class hospital prepost cohort/ desc param=ref; model cost=prepost cohort prepost*cohort covariate1 covariate2/link=log dist=gamma; repeated subject=hospital/type=ind; lsmeans prepost cohort prepost*cohort/ilink diff; slice prepost*cohort/nof ilink sliceby=cohort diff; /* This will give a test of pre vs post for each level of cohort */ run; Using the code above, How do you determine whether the 1) pre mean for all 4 cohorts values are significantly different (Test whether pre lsMean in cohort1= pre lsMean in cohort 2= pre lsMean in cohort 3 = pre lsMean cohort 4), post lsmean values for all cohorts are significantly different (Test whether post lsMean in cohort1= post lsMean in cohort 2= post lsMean in cohort 3 = post lsMean cohort 4and the overall differences between co pre vs post for each level of cohort (Test whether Mean diff in cohort1=mean difference in cohort 2=mean difference in cohort 3 =mean difference cohort 4 )
... View more