楼主: hugenli
5653 16

[其他] stata的help中有“{}”符号的命令应该怎么填写 [推广有奖]

  • 0关注
  • 0粉丝

高中生

52%

还不是VIP/贵宾

-

威望
0
论坛币
4 个
通用积分
0.0005
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
132 点
帖子
18
精华
0
在线时间
36 小时
注册时间
2011-7-4
最后登录
2013-10-16

楼主
hugenli 发表于 2011-8-17 17:02:46 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
在help xtunitroot的结果中有这样一串命令的提示xtunitroot fiser varname [if] [in],{dfuller / pperron},在输入这个命令时{}中的命令应该怎么输入,外面需要添加什么符号吗? 最近在写论文 谢谢各位的帮助了!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Stata tata Help elp xtunitroot

未命名.jpg (8.58 KB)

未命名.jpg

沙发
h3327156 发表于 2011-8-17 17:08:13
昏倒…您是问这个阿?
那个看帮助文件的例子就好了阿!

Fisher-type test based on ADF tests with 3 lags, allowing for a drift term in each panel

xtunitroot fisher lnrxrate, dfuller lags(3) drift


已有 1 人评分学术水平 热心指数 信用等级 收起 理由
h894510055 + 1 + 1 + 1 观点有启发

总评分: 学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

藤椅
hugenli 发表于 2011-8-17 17:11:53
h3327156 发表于 2011-8-17 17:08
昏倒…您是问这个阿?
那个看帮助文件的例子就好了阿!
好的 谢谢了哈

板凳
hugenli 发表于 2011-8-17 17:14:01
hugenli 发表于 2011-8-17 17:11
好的 谢谢了哈
再请问一下,那个滞后阶数lags应该怎么确定呢?

报纸
Gosia 发表于 2011-8-17 17:48:27
Supose you have a variable (lnrxrate) in the file (pennxrate)
to do panel unit root on stata
just type on the command:

. webuse pennxrate

. xtset id year
       panel variable:  id (strongly balanced)
        time variable:  year, 1970 to 2003
                delta:  1 unit

. xtunitroot fisher lnrxrate, dfuller lags(3) drift

Fisher-type unit-root test for lnrxrate
Based on augmented Dickey-Fuller tests
---------------------------------------
Ho: All panels contain unit roots           Number of panels  =    151
Ha: At least one panel is stationary        Number of periods =     34

AR parameter: Panel-specific                Asymptotics: T -> Infinity
Panel means:  Included
Time trend:   Not included
Drift term:   Included                      ADF regressions: 3 lags
------------------------------------------------------------------------------
                                  Statistic      p-value
------------------------------------------------------------------------------
Inverse chi-squared(302)  P       916.1451       0.0000
Inverse normal            Z       -18.8512       0.0000
Inverse logit t(759)      L*      -19.5571       0.0000
Modified inv. chi-squared Pm       24.9892       0.0000
------------------------------------------------------------------------------
P statistic requires number of panels to be finite.
Other statistics are suitable for finite or infinite number of panels.
------------------------------------------------------------------------------

My best Regards

地板
Gosia 发表于 2011-8-17 17:50:01
h3327156 发表于 2011-8-17 17:08
昏倒…您是问这个阿?
那个看帮助文件的例子就好了阿!
You are very good helper

7
Gosia 发表于 2011-8-17 18:02:25
hugenli 发表于 2011-8-17 17:14
再请问一下,那个滞后阶数lags应该怎么确定呢?
you can use
Levin-Lin-Chu test
Specifying lags(aic #) in this test requests that the number of lags of the series be chosen such that the Akaike information criterion (AIC) for the regression is minimized.
xtunitroot llc will fit ADF regressions with 1 to # lags and choose the regression for which the AIC is minimized


. xtunitroot llc lnrxrate, lags(aic 1)

Levin-Lin-Chu unit-root test for lnrxrate
-----------------------------------------
Ho: Panels contain unit roots               Number of panels  =    151
Ha: Panels are stationary                   Number of periods =     34

AR parameter: Common                        Asymptotics: N/T -> 0
Panel means:  Included
Time trend:   Not included

ADF regressions: 0.31 lags average (chosen by AIC)
LR variance:     Bartlett kernel, 10.00 lags average (chosen by LLC)
------------------------------------------------------------------------------
                    Statistic      p-value
------------------------------------------------------------------------------
Unadjusted t       -33.8991
Adjusted t*        -20.0280        0.0000
------------------------------------------------------------------------------

8
hugenli 发表于 2011-8-17 19:20:09
Gosia 发表于 2011-8-17 18:02
you can use
Levin-Lin-Chu test
Specifying lags(aic #) in this test requests that the number of  ...
thank you very much!!

9
hugenli 发表于 2011-8-17 19:46:06
Gosia 发表于 2011-8-17 18:02
you can use
Levin-Lin-Chu test
Specifying lags(aic #) in this test requests that the number of  ...
if I want to use ADF test,what should I do to find the lags?  
and which p-value is usefull in the following table?(the first one?)
                                  Statistic      p-value
------------------------------------------------------------------------------
Inverse chi-squared(302)  P       916.1451       0.0000
Inverse normal            Z       -18.8512       0.0000
Inverse logit t(759)      L*      -19.5571       0.0000
Modified inv. chi-squared Pm       24.9892       0.0000
------------------------------------------------------------------------------
thanks again!

10
Gosia 发表于 2011-8-17 20:00:26
hugenli 发表于 2011-8-17 19:46
if I want to use ADF test,what should I do to find the lags?  
and which p-value is usefull in  ...
You are welcome

My best regards

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-3 22:36