楼主: blanch
2883 2

[面板数据求助] 做pvar时的参数设置疑惑 [推广有奖]

  • 0关注
  • 0粉丝

本科生

93%

还不是VIP/贵宾

-

威望
0
论坛币
35 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
1423 点
帖子
90
精华
0
在线时间
42 小时
注册时间
2007-3-8
最后登录
2021-7-26

楼主
blanch 发表于 2017-3-12 14:39:47 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
求助stata大神关于在stata中运行pvar的问题,我现在用的是love博士2015年8月的pvar.ado文件,简单操作panel var没问题,我看help文件后想尝试td参数(对截面差异进行处理),加了td参数后有运行结果,只是运行完后显示
Instruments : l(1).(NCPSDR LR RGDPIR STCF1)
invalid syntax
r(198);

不知道问题出在哪里?
另外,我在看help文件的时候,没看懂pvar有几组model的option设置,这些参数可以放在一个模型中用吗?例如exog和td能放在一个模型中用吗?
附上pvar的help文件:

help pvar
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Title

    pvar -- Panel vector autoregressive models


Syntax

        pvar depvarlist [if] [in] [, options]

    options                       Description
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Model
      lags(#)                     use first # lags in the underlying pVAR; default is lags(1)
      exog(varlist)               use time-varying exogenous variables in varlist
      *fod                        use Helmert transformation to remove panel-specific fixed effects; the default
      *fd                         use first difference to remove panel-specific fixed effects

    Model 2
      td                          remove cross-sectional mean from each variable in depvarlist and in varlist if specified
      instlags(numlist)           specify lag orders of depvarlist to be used as instruments
      gmmstyle                    use "GMM-style" instruments; may only be used with instlags()
      gmmopts(options)            override the default GMM options

    SE/Robust
      vce(vcetype[, independent]) vcetype may be robust, cluster clustervar, bootstrap, jackknife, hac kernel lags or unadjusted; default is vce(unadjusted)

    Reporting
      overid                      report Hansen's J statistic of overidentying restrictions
      level(#)                    set confidence level; default is level(95)
      noprint                     do not display coefficient table
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    You must xtset your data before using pvar; see [XT] xtset.


Description

    pvar fits a multivariate panel regression of each dependent variable on lags of itself and on lags of all other dependent variables using generalized method of moments (GMM). pvar
    also fits a variant of panel vector autoregressive models (pVAR) known as pVARX, which also includes exogenous explanatory variables. See [R] gmm for GMM estimation option details.


Options

        +-------+
    ----+ Model +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    lags(#) specifies the maximum lag order # to be included in the model.  The default is to use the first lag of each variable in depvarlist.

    exog(varlist) specifies a list of exogenous variables to be included in the pVAR.

    fod specifies that the panel-specific fixed effects be removed using forward orthogonal deviation or Helmert transformation. By default, the first # lags of depvarlist in the model
        are instrumented by the same lags. This is the default option.

    fd specifies that the panel-specific fixed effects be removed using first difference instead of forward orthogonal deviations. By default, the first # lags of depvarlist in the model
        are instrumented by the #+1 to 2#+1 lags of depvarlist.

        +---------+
    ----+ Model 2 +------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    td specifies that the cross-sectional mean be removed by differencing from each series.

    instlags(numlist) overrides the default lag orders of depvarlist used as instruments in the model. Instead the numlist-th lags are used as instruments.

    gmmstyle specifies that "GMM-style" instruments as proposed by Holtz-Eakin, Newey and Rosen (1988) be used. For each instrument based on lags of depvarlist, missing values are
        substituted with zero. Observations with no valid instruments are excluded.

    gmmopts(options) overrides the default pvar options. Equations in the model are named using each variable in depvarlist. See [R] gmm for options.

        +-----------+
    ----+ SE/Robust +----------------------------------------------------------------------------------------------------------------------------------------------------------------------

    vce(vcetype[, independent]) specifies the type of standard error reported, which includes types that are robust to some types of misspecification, that allow for intragroup
        correlation, and that use bootstrap or jackknife methods; see [R] vce_option.

        +-----------+
    ----+ Reporting +----------------------------------------------------------------------------------------------------------------------------------------------------------------------

    overid specifies that Hansen's J statistic of overidentifying restriction be reported. This option is available only for over-identified systems.

    level(#); see [R] estimation_options.

    noprint suppresses printing of the coefficient table.


Remarks

    This version is in beta mode. No warranties whatsoever.




二维码

扫码加我 拉你入群

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

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

关键词:PVaR 参数设置 VaR PVA fixed effect

沙发
lilylys 发表于 2017-8-9 09:14:58
同问,我加入td后也出现了invalid syntax的提示。。
请问楼主怎么解决的?

藤椅
浅谈辄止 发表于 2021-5-18 11:31:13
加入td后,pvarg估计结果中好多0(omitted),是怎么回事?

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-2 17:40