全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2018-5-4 06:20:02
黃河泉 发表于 2018-5-3 14:58
我从不用 FGLS。
老师,请问是因为FGLS存在什么漏洞吗?
二维码

扫码加我 拉你入群

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

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

2018-5-4 07:14:11
静晨是我 发表于 2018-5-4 06:20
老师,请问是因为FGLS存在什么漏洞吗?
这是实务上应用的问题,虽然偶而还是会看到有人用 FGLS (我几乎已经忘了它是什么啦!),但大部分财金期刊文章大多是用 FE 并修正标准误。
二维码

扫码加我 拉你入群

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

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

2018-5-4 08:51:57
黃河泉 发表于 2018-5-4 07:14
这是实务上应用的问题,虽然偶而还是会看到有人用 FGLS (我几乎已经忘了它是什么啦!),但大部分财金期刊 ...
原来是这样,多谢老师,我再按照您说的试一下
二维码

扫码加我 拉你入群

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

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

2018-5-4 08:54:34
静晨是我 发表于 2018-5-4 08:51
原来是这样,多谢老师,我再按照您说的试一下
印象上,FGLS 尚须一些额外假设才可以进行,但若这些假设是错的呢?
二维码

扫码加我 拉你入群

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

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

2018-5-4 09:01:17
黃河泉 发表于 2018-5-4 08:54
印象上,FGLS 尚须一些额外假设才可以进行,但若这些假设是错的呢?
老师,我用FGLS之外的模型都不够显著该怎么办呢?按照您给的LSDV命令得到的回归结果也不够显著,请问老师您有没有什么办法提高显著性呢
二维码

扫码加我 拉你入群

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

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

2018-5-4 09:31:43
静晨是我 发表于 2018-5-4 09:01
老师,我用FGLS之外的模型都不够显著该怎么办呢?按照您给的LSDV命令得到的回归结果也不够显著,请问老师 ...
这很难讲 (这涉及到经验)!
二维码

扫码加我 拉你入群

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

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

2018-5-4 09:46:12
黃河泉 发表于 2018-5-4 09:31
这很难讲 (这涉及到经验)!
我再试一下,谢谢老师
二维码

扫码加我 拉你入群

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

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

2018-5-4 14:30:10
892821586 发表于 2018-5-4 03:14
请问您问题解决了吗,我也跟您类似,求教!!
尚未解决,同求
二维码

扫码加我 拉你入群

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

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

2018-5-4 17:25:12
记得黄老师分享了新的长数据和宽数据转换的命令,但是今天找的时候却找不到了,黄老师方便再分享下吗
二维码

扫码加我 拉你入群

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

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

2018-5-4 18:14:53
yuqr1986 发表于 2018-5-4 17:25
记得黄老师分享了新的长数据和宽数据转换的命令,但是今天找的时候却找不到了,黄老师方便再分享下吗
我也忘了是什么东西了?你指的是 reshape 吗?
二维码

扫码加我 拉你入群

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

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

2018-5-4 19:36:43
黃河泉 发表于 2018-5-4 18:14
我也忘了是什么东西了?你指的是 reshape 吗?
不是reshape,是另一个命令,当时黄老师这个命令比reshape有优势,但是记不清是哪个命令了
二维码

扫码加我 拉你入群

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

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

2018-5-5 07:58:39
yuqr1986 发表于 2018-5-4 19:36
不是reshape,是另一个命令,当时黄老师这个命令比reshape有优势,但是记不清是哪个命令了
不过,基本上 reshape 应该也可以做。
二维码

扫码加我 拉你入群

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

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

2018-5-5 11:01:40
黃河泉 发表于 2018-5-5 07:58
不过,基本上 reshape 应该也可以做。
嗯,reshape处理也挺方便
二维码

扫码加我 拉你入群

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

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

2018-5-20 00:01:44
黄老师,我在用reghdfe的时候absorb了行业,也cluster了行业,最后记过行业的固定效应被删除了,请问这是为什么呢?可以怎么解决呢
二维码

扫码加我 拉你入群

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

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

2018-5-20 08:08:11
somnus91 发表于 2018-5-20 00:01
黄老师,我在用reghdfe的时候absorb了行业,也cluster了行业,最后记过行业的固定效应被删除了,请问这是为 ...
1. 尔后请将指令与结果发出来,不然怎判断呢? 2. 八成是与其他 absorb (特别是公司)因素共线性。
二维码

扫码加我 拉你入群

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

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

2018-5-20 10:37:35
黃河泉 发表于 2018-5-20 08:08
1. 尔后请将指令与结果发出来,不然怎判断呢? 2. 八成是与其他 absorb (特别是公司)因素共线性。
Absorbed degrees of freedom:
---------------------------------------------------------------+
Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     |
-------------+-------------------------------------------------|
        year |           11              11              0     |
      hydd_f |            0              54             54 *   |
    dqcity_f |          287             288              1     |
---------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation

老师,不好意思,上面是报的问题,我查了一下这个问题的原因,谢谢老师!
二维码

扫码加我 拉你入群

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

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

2018-5-20 10:41:16
黃河泉 发表于 2018-5-20 08:08
1. 尔后请将指令与结果发出来,不然怎判断呢? 2. 八成是与其他 absorb (特别是公司)因素共线性。
老师,还有一个问题哦,我按照您给的网址进行了最新版的下载,报错如下:

. net install moresyntax, from("https://github.com/sergiocorreia/moresyntax/raw/master/src/")
Received fatal alert: protocol_version
https://github.com/sergiocorreia/moresyntax/raw/master/src/ either
  1)  is not a valid URL, or
  2)  could not be contacted, or
  3)  is not a Stata download site (has no stata.toc file).
r(5100);

.
.
.
. cap ado uninstall ftools

.
. net install ftools, from("https://github.com/sergiocorreia/ftools/raw/master/src/")
Received fatal alert: protocol_version
https://github.com/sergiocorreia/ftools/raw/master/src/ either
  1)  is not a valid URL, or
  2)  could not be contacted, or
  3)  is not a Stata download site (has no stata.toc file).
r(5100);

.
.
.
. cap ado uninstall reghdfe

.
. net install reghdfe, from("https://github.com/sergiocorreia/reghdfe/raw/master/src/")
Received fatal alert: protocol_version
https://github.com/sergiocorreia/reghdfe/raw/master/src/ either
  1)  is not a valid URL, or
  2)  could not be contacted, or
  3)  is not a Stata download site (has no stata.toc file).
r(5100);

请问这个问题怎么解决呢,谢谢老师!
二维码

扫码加我 拉你入群

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

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

2018-5-20 10:52:15
somnus91 发表于 2018-5-20 10:41
老师,还有一个问题哦,我按照您给的网址进行了最新版的下载,报错如下:

. net install moresyntax,  ...
这超乎我的知识了。晚一点你再试试,或问其他人(其他电脑)有无类似问题。
二维码

扫码加我 拉你入群

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

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

2018-5-20 10:53:12
somnus91 发表于 2018-5-20 10:37
Absorbed degrees of freedom:
---------------------------------------------------------------+
...
所以现在是怎样?
二维码

扫码加我 拉你入群

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

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

2018-5-20 11:34:38
黃河泉 发表于 2018-5-20 10:53
所以现在是怎样?
A fixed effect is “nested within cluster” if the same variable is used in vce(cluster ...) and in absorb(...) or—more generally—if a cluster variable is coarser than a fixed effect variable. For instance, if we have state–clustered standard errors and county–level fixed effects, or with clustering by year and monthly fixed effects.

Whenever this happens, reghdfe will avoid applying a double penalty to the standard errors: it will continue to cluster by e.g. state but will not use the number of counties when computing the absorbed degrees of freedom.

原因是这样说的,所以意思就是固定效应和cluster中不能出现同一个变量么
二维码

扫码加我 拉你入群

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

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

2018-5-20 11:35:17
黃河泉 发表于 2018-5-20 10:52
这超乎我的知识了。晚一点你再试试,或问其他人(其他电脑)有无类似问题。
这个跟stata版本有关系么,老师,您用的哪个版本呢
二维码

扫码加我 拉你入群

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

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

2018-5-20 11:57:01
somnus91 发表于 2018-5-20 11:35
这个跟stata版本有关系么,老师,您用的哪个版本呢
Stata 15.1 (MP4)。
二维码

扫码加我 拉你入群

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

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

2018-5-20 12:03:42
黃河泉 发表于 2018-5-20 11:57
Stata 15.1 (MP4)。
好的,谢谢!我用15试试
二维码

扫码加我 拉你入群

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

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

2018-5-20 23:27:33
黃河泉 发表于 2018-5-20 11:57
Stata 15.1 (MP4)。
老师,我用stata15也不能下载最新版,貌似是连不上链接的原因,但是我的网页是可以打开的,您知道怎么手动安装这个最新版吗?
二维码

扫码加我 拉你入群

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

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

2018-5-21 10:32:45
somnus91 发表于 2018-5-20 23:27
老师,我用stata15也不能下载最新版,貌似是连不上链接的原因,但是我的网页是可以打开的,您知道怎么手动 ...
看看其他同学有无类似情况。
二维码

扫码加我 拉你入群

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

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

2018-5-21 23:23:11
黃河泉 发表于 2018-5-20 10:53
所以现在是怎样?
A fixed effect is “nested within cluster” if the same variable is used in vce(cluster ...) and in absorb(...) or—more generally—if a cluster variable is coarser than a fixed effect variable. For instance, if we have state–clustered standard errors and county–level fixed effects, or with clustering by year and monthly fixed effects.

Whenever this happens, reghdfe will avoid applying a double penalty to the standard errors: it will continue to cluster by e.g. state but will not use the number of counties when computing the absorbed degrees of freedom.

老师,关于我之前cluster了一个固定效应变量之后该固定效应就被去掉的原因如上,请问这个问题怎么解决呢?求老师解答,谢谢老师了!
二维码

扫码加我 拉你入群

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

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

2018-5-22 06:36:12
somnus91 发表于 2018-5-21 23:23
A fixed effect is “nested within cluster” if the same variable is used in vce(cluster ...) and i ...
看不懂你的问题。
二维码

扫码加我 拉你入群

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

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

2018-5-22 08:07:58
黃河泉 发表于 2018-5-22 06:36
看不懂你的问题。
是这样的,我在使用行业、年份、地区作为固定效应的时候同时cluster了行业,做出来的结果显示如下:
Absorbed degrees of freedom:                                                                       
---------------------------------------------------------------+                                                                       
Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     |                                                                        
-------------+-------------------------------------------------|                                                                       
        year |           11              11              0     |                                                                        
      hydd_f |            0              28             28 *   |                                                                        
    dqcity_f |          287             288              1     |                                                                        
---------------------------------------------------------------+                                                                       
* = fixed effect nested within cluster; treated as redundant for DoF computation                                                                       

我查了一下解释,解释如下:
A fixed effect is “nested within cluster” if the same variable is used in vce(cluster ...) and in absorb(...) or—more generally—if a cluster variable is coarser than a fixed effect variable. For instance, if we have state–clustered standard errors and county–level fixed effects, or with clustering by year and monthly fixed effects.

Whenever this happens, reghdfe will avoid applying a double penalty to the standard errors: it will continue to cluster by e.g. state but will not use the number of counties when computing the absorbed degrees of freedom.

但我还是不太明白,这个意思是cluster和固定效应中不能用同一个变量吗?

二维码

扫码加我 拉你入群

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

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

2018-5-22 10:20:51
somnus91 发表于 2018-5-22 08:07
是这样的,我在使用行业、年份、地区作为固定效应的时候同时cluster了行业,做出来的结果显示如下:
Abs ...
应该不是,而且我不觉得这些问题有什么重要性?
二维码

扫码加我 拉你入群

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

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

2018-5-23 01:44:00
黃河泉 发表于 2018-5-21 10:32
看看其他同学有无类似情况。
复制代码
一样依然是这种问题,不知道是何原因
二维码

扫码加我 拉你入群

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

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

栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群