I think you should recode your variable like this : if City = 44 then City = 3 else if City = 163 City = 4 etc. after that you can use the proc transreg : proc transreg data=a(keep = city) noprint design ; model class (city /zero=none) ; output out=a_dummicode(drop=_name_ _type_ intercept) ; run ;
... View more