The data have time, censor, and a categorical variable bleed (low, medium, high). I was asked to conduct a trend test for the bleed variable by adding
contrast 'linear' bleed -1 0 1;
after the model statement.
However, if the bleed has four categories, (low, medium, high, severe), the the contrast should be
contrast 'linear' bleed -3 -1 1 3 ;
Can anyone help me figure out why the values of the contrast have to be -2 1 1 2 instead or other values?
Thank you for your help. But I am still confused about how these values are created, for example, linear (-3 -1 1 3) and quadratic(1 -1 -1 1)?
contrast 'linear' dose -3 -1 1 3; contrast 'quadratic' dose 1 -1 -1 1; contrast 'cubic' dose -1 3 -3 1;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.