Re: [問題] 用sas建立虛擬變項的程式怎麼寫

看板Statistics作者 (咖啡王子)時間17年前 (2007/06/04 23:33), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/4 (看更多)
※ 引述《dkoe (Maybe)》之銘言: : 若我的資料是類別變項(1,2,3)3類 : 要建2個dummy要如何寫程式呢? : 感恩~ if 類別變項=1 then D1=1; if 類別變項=2 then D2=1; if D1=. then D1=0; if D2=. then D2=0; run; 完成 如果要跑PANEL data 請參考 proc tscsreg 的指令 基本上不需要再設dummy -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.232.181.241

06/06 01:13, , 1F
logistic 可以寫 class xxx / ref=first param=ref;
06/06 01:13, 1F
文章代碼(AID): #16P33BtA (Statistics)
討論串 (同標題文章)
文章代碼(AID): #16P33BtA (Statistics)