Does anyone know how to create linear combinations using proc mixed or plm? In Stata, the syntax is lincom. For example, if you were to model the change in gallons of ice cream consumed for 6 months in a particular population, with data collected at each month. Contrast and lsmestimates can be used to compare the predicted means for each month (ie ice cream at 1 vs 2 months), but how can I test if the change from 1 to 2 months is different from the change from 2 to 3 months. The basic model would be: proc mixed data=heatwave; class id month; model icecream=month; random int /subject=id; run;
... View more