@amng wrote:
PROC LOGISTIC DATA=diabetes; class getadvice2(ref=first) manage5(ref="0") / param=ref; MODEL manage5(Desc) = getadvice2 / link=glogit; title "Model 1"; RUN;
Hi @amng,
Look at a cross tabulation of getadvice2 and manage5 (PROC FREQ). If the cell getadvice2=0 & manage5=0 is empty, the estimated odds of manage5=5 (and likewise 4, 3, 2, 1) vs. manage5=0, which you chose as the reference category, will have a zero in the denominator for getadvice2=0, leading to the "zero" odds ratio estimates in your table. In this case, pick a different reference category for manage5, i.e., one with non-empty cells for both getadvice2 categories, so that non-trivial odds ratio estimates (for manage5 ne 0) have a chance to occur.
... View more