楼主: 黃河泉
87077 191

[程序分享] reghdfe 与常数项。   [推广有奖]

41
yuqr1986 学生认证  发表于 2018-5-4 19:36:43 |只看作者 |坛友微信交流群
黃河泉 发表于 2018-5-4 18:14
我也忘了是什么东西了?你指的是 reshape 吗?
不是reshape,是另一个命令,当时黄老师这个命令比reshape有优势,但是记不清是哪个命令了

使用道具

42
黃河泉 在职认证  发表于 2018-5-5 07:58:39 |只看作者 |坛友微信交流群
yuqr1986 发表于 2018-5-4 19:36
不是reshape,是另一个命令,当时黄老师这个命令比reshape有优势,但是记不清是哪个命令了
不过,基本上 reshape 应该也可以做。

使用道具

43
yuqr1986 学生认证  发表于 2018-5-5 11:01:40 |只看作者 |坛友微信交流群
黃河泉 发表于 2018-5-5 07:58
不过,基本上 reshape 应该也可以做。
嗯,reshape处理也挺方便

使用道具

44
somnus91 发表于 2018-5-20 00:01:44 |只看作者 |坛友微信交流群
黄老师,我在用reghdfe的时候absorb了行业,也cluster了行业,最后记过行业的固定效应被删除了,请问这是为什么呢?可以怎么解决呢

使用道具

45
黃河泉 在职认证  发表于 2018-5-20 08:08:11 |只看作者 |坛友微信交流群
somnus91 发表于 2018-5-20 00:01
黄老师,我在用reghdfe的时候absorb了行业,也cluster了行业,最后记过行业的固定效应被删除了,请问这是为 ...
1. 尔后请将指令与结果发出来,不然怎判断呢? 2. 八成是与其他 absorb (特别是公司)因素共线性。
已有 1 人评分经验 收起 理由
葫芦娃大王 + 10 精彩帖子

总评分: 经验 + 10   查看全部评分

使用道具

46
somnus91 发表于 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

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

使用道具

47
somnus91 发表于 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);

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

使用道具

48
黃河泉 在职认证  发表于 2018-5-20 10:52:15 |只看作者 |坛友微信交流群
somnus91 发表于 2018-5-20 10:41
老师,还有一个问题哦,我按照您给的网址进行了最新版的下载,报错如下:

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

使用道具

49
黃河泉 在职认证  发表于 2018-5-20 10:53:12 |只看作者 |坛友微信交流群
somnus91 发表于 2018-5-20 10:37
Absorbed degrees of freedom:
---------------------------------------------------------------+
...
所以现在是怎样?

使用道具

50
somnus91 发表于 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中不能出现同一个变量么

使用道具

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

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-26 02:58