楼主: songtao07
9198 7

[问答] 用R中函数pgmm怎么用啊,onestep和twosteps有什么区别 [推广有奖]

  • 2关注
  • 5粉丝

已卖:2份资源

讲师

32%

还不是VIP/贵宾

-

威望
0
论坛币
37 个
通用积分
9.8413
学术水平
20 点
热心指数
30 点
信用等级
18 点
经验
2632 点
帖子
528
精华
0
在线时间
239 小时
注册时间
2010-6-15
最后登录
2025-12-5

楼主
songtao07 发表于 2011-9-8 18:51:02 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
        用R中函数pgmm怎么用啊,onestep和twosteps有什么区别,还有effect中选项有什么区别,帮助上面的有些没说,有的我看不懂。请高手指点。还有有时,怎么出不来结果呢?
二维码

扫码加我 拉你入群

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

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

关键词:twostep onestep Steps Step ones

沙发
epoh 发表于 2011-9-11 20:07:21
pgmm(formula, data, subset, na.action,
     effect = c("twoways", "individual"),model = c("onestep", "twosteps"),
     transformation = c("d", "ld"),fsm = NULL, index = NULL, ...)
######
The effect argument is either "twoways" (the default), or "individual"  .
"individual": the model is estimated in first differences
"twoways": the model is estimated in first differences and time dummies are included.
#######
transformation:"d" (the default value) for the“difference GMM”model(一阶差分GMM)
                   or "ld" for the “system GMM"(系统GMM)

fsm the matrix for the one step estimator :
    if transformation="d",one of "I" (identity matrix) or "G" (=D'D where D is the first-difference operator)  
    if transformation="ld", one of "GI" or "full"

"onestep" estimators are computed using a known weighting matrix.

"twosteps"method:
  利用第一阶段估计得到的残差构造方差-协方差矩阵,进而重新估计模型.
1.Two-step feasible GMM
   Step 1: Take W = I (the identity matrix),...
   Step 2: Take..........
2.Iterated GMM
3.Continuously Updating GMM

更进一步了解,请参考:
  package "gmm",gmm.pdf
  package "plm",panel Data Econometrics in R: the plm Package.pdf
已有 3 人评分论坛币 学术水平 热心指数 信用等级 收起 理由
yahoocom + 40 分析的有道理
songtao07 + 1 + 1 + 1 我很赞同
ywh19860616 + 1 + 1 + 1 有启发

总评分: 论坛币 + 40  学术水平 + 2  热心指数 + 2  信用等级 + 2   查看全部评分

藤椅
songtao07 发表于 2011-9-13 14:58:22
epoh 发表于 2011-9-11 20:07
pgmm(formula, data, subset, na.action,
     effect = c("twoways", "individual"),model = c("onestep" ...
谢谢了!!!!!

板凳
yanbridge 发表于 2011-11-6 20:03:26
我看包里的例子有一个地方不太懂,比如z2 <- pgmm(log(emp) ~ lag(log(emp), 1)+ lag(log(wage), 0:1) +
        lag(log(capital), 0:1) | lag(log(emp), 2:99) +
        lag(log(wage), 2:99) + lag(log(capital), 2:99),
        data = EmplUK, effect = "twoways", model = "onestep",
         transformation = "ld")
summary(z2, robust = TRUE)


我不太懂命令中红色的部分,另外2:99的设定的根据是什么?

报纸
与梦齐飞 在职认证  发表于 2011-11-24 10:47:46
滞后的意思

地板
804967363 在职认证  发表于 2014-12-8 16:31:16
yanbridge 发表于 2011-11-6 20:03
我看包里的例子有一个地方不太懂,比如z2
你搞懂了2:99怎么设定没?求指点

7
hongt 发表于 2016-1-6 00:07:53
yanbridge 发表于 2011-11-6 20:03
我看包里的例子有一个地方不太懂,比如z2
红色什么意思啊

8
小不点呵呵 发表于 2023-6-19 17:33:56
yanbridge 发表于 2011-11-6 20:03
我看包里的例子有一个地方不太懂,比如z2
适用解释变量的滞后2:99项作为差分方程的GMM工具变量

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-5 13:27