将固定效果模型转换为系统gmm

问题描述

我用plm包的plm()成功地估计了一个固定效果模型。现在,我想使用pgmm()来估计具有相同变量的系统gmm,因为我想控制内在性。可悲的是,我不理解pgmm()的参数。
model1.8 <- plm(pmatb$`TB Incidence per 100000 at risk` ~ pmatb$TubercuosisControlLag                    +pmatb$`Battle Deaths`                                                                          
               +pmatb$CPI                                                               
                                           +pmatb$`Polity5(2) Index`                         
                                                       +pmatb$`Basic health care`            
                                                                      +pmatb$`Basic health infrastructure`                                                                      +pmatb$`Basic nutrition`                                                                              
 +pmatb$`InfectIoUs disease control`                                                        
                          +pmatb$`Health education` 
                                                                                 +pmatb$`GDP per Capita`  
                                                                                     +pmatb$`Domestic health expenditure per capita`,model = "within",pmatb)

估计系统gmm很棒,但是当我尝试时,我收到了错误消息:

Error in terms.default(formula) : no terms component nor attribute
In addition: Warning messages:
1: use of 'dynformula' is deprecated,use a multi-part formula instead 
2: use of 'dynformula' is deprecated,use a multi-part formula instead

我很累:

pgmm(pmatb$`TB Incidence per 100000 at risk`~pmatb$TubercuosisControlLag                               +pmatb$`Battle Deaths`                                                                          
               +pmatb$CPI                                                               
                                           +pmatb$`Polity5(2) Index`                         
                                                       +pmatb$`Basic health care`            
                                                                      +pmatb$`Basic health infrastructure`                                                                      +pmatb$`Basic nutrition`                                                                              
 +pmatb$`InfectIoUs disease control`                                                        
                          +pmatb$`Health education` 
                                                                                 +pmatb$`GDP per Capita`  
                                                                                     +pmatb$`Domestic health expenditure per capita`,pmatb,effect = "twoways",model = "onestep",transformation = c("ld")
               )

非常感谢您的任何建议

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)