/****************************************************************************** * Programme : Ejemplo 4 para PROC GENMOD * Reference : EJEMPL3A71 * Source : https://www.wearecas.eu/en/sampleCode/EJEMPL3A71 ******************************************************************************/ /* --- BLOC 1 --- */ data Icecream; input count brand$ taste$; datalines; 70 ice1 vg 71 ice1 g 151 ice1 m 30 ice1 b 46 ice1 vb 20 ice2 vg 36 ice2 g 130 ice2 m 74 ice2 b 70 ice2 vb 50 ice3 vg 55 ice3 g 140 ice3 m 52 ice3 b 50 ice3 vb ; /* --- BLOC 2 --- */ proc genmod data=Icecream rorder=data; freq count; class brand; model taste = brand / dist=multinomial link=cumlogit aggregate=brand type1; estimate 'LogOR12' brand 1 -1 / exp; estimate 'LogOR13' brand 1 0 -1 / exp; estimate 'LogOR23' brand 0 1 -1 / exp; run;