Re: [問題] 用stata 跑 panel data

看板Statistics作者 (微笑台灣)時間17年前 (2008/12/11 23:18), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串2/3 (看更多)
所以 如果 我的資料為 i t export firstdifference loginflation Australia 1985 15.45035648 -0.035001284 0.685007036 Australia 1986 15.25379944 -0.004398629 0.752066268 Australia 1987 15.84557819 0.008915841 0.843188047 Australia 1988 16.20929909 0.091526601 0.931237534 ... .. .. .. .. Australia 2004 17.51846123 0.113154749 0.519967983 Bangladesh 1985 5.550197124 0.030288166 1.047261517 Bangladesh 1986 5.351111412 -0.019646805 0.903154179 Bangladesh 1987 5.165100098 0.04042481 1.036631032 ... .. .. .. .. Bangladesh 2004 15.46485329 0.029117101 0.627409788 這樣子 我應該把國家名稱改成 1,2,...來代替嗎 因為我搞很久都不成功 不懂 string variable not allowed 這個錯誤訊息 我應該要如何改正比較好 ※ 引述《paiyeu (微笑台灣)》之銘言: : 我跑panel data : 下指令 iis idcode : 卻出現 varlist: idcode: string variable not allowed : 請問這樣是指啥麼 : 我想要讓 國家為 固定效果 : 卻只能是時間為固定效果 : 我少了啥麼步驟嗎 : 我下的指令為 : iis idcode : tis year : xtset idcode year : 出現 varlist: idcode: string variable not allowed : xtreg loginflation import firstdifference,fe : 出現 must specify panelvar; use xtset : 請告訴我 發生啥麼事情了 : 感恩 : 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.124.27.82

12/12 10:25, , 1F
encode string, gen(numeric)
12/12 10:25, 1F
文章代碼(AID): #19GIz5pD (Statistics)
文章代碼(AID): #19GIz5pD (Statistics)