全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
9095 7
2011-09-08
        用R中函数pgmm怎么用啊,onestep和twosteps有什么区别,还有effect中选项有什么区别,帮助上面的有些没说,有的我看不懂。请高手指点。还有有时,怎么出不来结果呢?
二维码

扫码加我 拉你入群

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

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

全部回复
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
二维码

扫码加我 拉你入群

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

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

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" ...
谢谢了!!!!!
二维码

扫码加我 拉你入群

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

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

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
滞后的意思
二维码

扫码加我 拉你入群

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

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

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

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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