討論串[問題] SAS設置dummy variable
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 7→)留言9則,0人參與, 最新作者tew (咖啡王子)時間15年前 (2010/12/10 22:31), 編輯資訊
0
0
0
內容預覽:
我是不清楚你要做的研究. 但是 我想說的是 你的虛擬變數是否有必要設定 XDD. 如果只是跑有固定效果的regression. proc tscsreg;. id time ; (公司變數). model y=x1-xn;. run;. 這樣子跑出來. 就會跟. proc reg;. model y
(還有28個字)

推噓4(4推 0噓 7→)留言11則,0人參與, 最新作者MmmRrrrX (銀色的靈魂)時間15年前 (2010/12/09 23:32), 編輯資訊
0
0
0
內容預覽:
比較大的問題在於日期非連續的數字. /*先做另一個表,把日期改成1234....排序*/. data a1;. set yourdata;. by date;. if _n_=1 then temp=0;. retain temp;. if first.date then temp=temp+1;.
(還有106個字)

推噓0(0推 0噓 2→)留言2則,0人參與, 最新作者ivan1215 (米糕)時間15年前 (2010/12/09 22:07), 編輯資訊
0
0
0
內容預覽:
各位前輩好. 我現在遇到設置dummy variable 的問題. 因為我的data 內總共有一百多萬筆資料 實際天數約2000天 公司有八百多家. 我現在要依照日期來設至dummy variable. if date=20010102 then d1=1 ;else d1=0;. if date=
(還有104個字)
首頁
上一頁
1
下一頁
尾頁