楼主: mbygzh
19644 22

[回归分析求助] 求助:请教偏差校正lsdv法(lsdvc)适用什么样的数据以及命令 [推广有奖]

  • 5关注
  • 4粉丝

已卖:529份资源

讲师

41%

还不是VIP/贵宾

-

威望
0
论坛币
4543 个
通用积分
0.5973
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
17734 点
帖子
181
精华
0
在线时间
675 小时
注册时间
2012-6-28
最后登录
2025-12-22

楼主
mbygzh 发表于 2016-7-30 17:24:37 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
求助论坛各路大神:请教lsdvc模型适用什么样的数据以及命令?愿不吝赐教~~
或者哪位大神有相关资料可以分享一下,愿付坛币~~
二维码

扫码加我 拉你入群

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

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

关键词:LSDV LSD 分享一下 相关资料 模型

fighting~~

沙发
xiongjc 在职认证  发表于 2016-7-30 18:39:12 来自手机
mbygzh 发表于 2016-7-30 17:24
求助论坛各路大神:请教lsdvc模型适用什么样的数据以及命令?愿不吝赐教~~
或者哪位大神有相关资料可以分享 ...
ladc就是固定效应
stata中直接xtreg y x1 x2,fe
就搞定

藤椅
黃河泉 在职认证  发表于 2016-7-31 08:06:46
比较一下(结果应该一样):
  1. xtset id year
  2. // FE
  3. xtreg y x1 x2, fe robust
  4. // LSDV 1
  5. tab id, gen(did)
  6. reg y x1 x2 did*, robust
  7. // LSDV 2
  8. xi: y x1 x2 i.id, robust
复制代码

板凳
mbygzh 发表于 2016-7-31 09:13:27
黃河泉 发表于 2016-7-31 08:06
比较一下(结果应该一样):
依旧是黄老师光临,嘿嘿,您的意思是跟固定效应一样是吧,但是我看陈强的计量那本书上写的是偏差校正lsdv法允许以被解释变量的一阶滞后作为解释变量的,迷茫ing...

报纸
mbygzh 发表于 2016-7-31 09:25:26
黃河泉 发表于 2016-7-31 08:06
比较一下(结果应该一样):
谢谢黄老师的解答,嘿嘿,您的意思是说跟固定效应一样是吧,但是我看陈强的书上写的是lsdvc可以允许被解释变量的一阶滞后作为解释变量,属于动态面板了,不知道我理解的对不

地板
黃河泉 在职认证  发表于 2016-7-31 11:10:08
哈哈!我"老人家"闲来无事,到处铺桥造路,希望对大家有一些帮助!
1. 先确定我们讲的是同样的事! lsdvc 的全名是啥?(特别是那个 c)
2. 你谈的是动态面板适不适合用 lsdv(c) 估计,这是一个有趣的问题,我不很确定,但直觉上似乎是可以的(此时应该没有内生性问题!)。但希望有人能再确认一下!
3. 那两只兔子很可爱!

7
蓝色 发表于 2016-7-31 11:29:46
黃河泉 发表于 2016-7-31 11:10
哈哈!我"老人家"闲来无事,到处铺桥造路,希望对大家有一些帮助!
1. 先确定我们讲的是同样的事! lsdvc  ...
我猜他说的是下楼这个命令

------------------------------------------------------------------------------------------------------------------
help for xtlsdvc                                                                                   (SJ5-4: st0091)
------------------------------------------------------------------------------------------------------------------

Bias corrected LSDV dynamic panel data estimator

        xtlsdvc depvar [indepvars] [if], initial(estimator) [level(#) bias(#) vcov(#) first lsdv]

    where estimator is

            ah                  Anderson-Hsiao
            ab                  Arellano-Bond
            bb                  Blundell-Bond
            my                  initial values supplied by the user

    xtlsdvc is for use with time-series data.  You must tsset your data before using xtlsdvc; see tsset.
    However, since xtlsdvc calls xtreg, indepvars may not contain time-series operators; see xtreg.

    xtlsdvc shares the features of all estimation commands; see estcom.


    The syntax of predict following xtlsdvc is

        predict [type] newvarname [if] [in] [, statistic]

    where y[i,t] =  y[i,t-1]a + x[i,t]b + u + e[i,t] and statistic is

        xb      y[i,t-1]a + x[i,t]b, fitted values; the default
        ue      u + e[i,t], the combined residual
    (*) xbu     y[i,t-1]a + x[i,t]b + u, prediction, including fixed effect
    (*) u       u, the fixed effect
    (*) e       e[i,t], the observation-specific error component

    Unstarred statistics are available both in and out of sample; type predict ... if e(sample) ... if wanted
    only for the estimation sample.  Starred statistics are calculated only for the estimation sample, even when
    if e(sample) is not specified.


Description

    xtlsdvc calculates bias-corrected least-squares dummy variable (LSDV) estimators for the standard
    autoregressive panel-data model using the bias approximations in Bruno (2005a), who extends the results by
    Bun and Kiviet (2003), Kiviet (1999), and Kiviet (1995) to unbalanced panels

    y[i,t] =  y[i,t-1]a + x[i,t]b + u + e[i,t]      i={1,...,N};     t={1,...,T_i},

    where

    a is a parameter to be estimated

    x[i,t] is a (1 X (k-1)) vector of strictly exogenous covariates

    b is a ((k-1) X 1) vector of parameters to be estimated

    u are the individual effects, for which no distributional assumption is made apart being fixed over time,

    and e[i,t] are iid over the whole sample with variance s_e*s_e.

    It is also assumed that the u and the e[i,t] are independent for each i over all t.

    A more detailed description of xtlsdvc can be found in Bruno (2005b).


Options

    initial(estimator) is required and specifies the consistent estimator chosen to initialize the bias
        correction.

      estimator  description
    ------------------------------------------------------------------------------------------------------------
      ah         AH estimator, with the dependent variable lagged two times, used as an instrument for the
                   first-differenced model with no intercept (ivreg)
      ab         standard one-step AB estimator with no intercept (xtabond)
      bb         standard BB estimator with no intercept, as implemented by the user-written Stata routine
                   xtabond2 by Roodman (2003)
      my         a row vector of initial values supplied directly by the user
    ------------------------------------------------------------------------------------------------------------

        To implement the last instance of this option, the user must create a {1 x (k+1)} matrix to be named my,
        the i element of which serves as an initial value for the coefficient on the i variable in varlist and
        the last, (k+1), element as an estimate for the error variance. This may be useful in Monte Carlo
        simulations or if the user wishes to try initial estimators other than ah, ab, or bb.

    level(#) specifies the confidence level, as a percentage, for confidence intervals of the coefficients. The
        default is level(95) or as set by set level.

    bias(#) determines the accuracy of the approximation:  #=1 (default) forces an approximation up to O(1/T);
        #=2 forces and approximation up to O(1/NT); #=3 forces an approximation up to O(N^{-1}T^{-2}).

    vcov(#) calculates a bootstrap variance-covariance matrix for LSDVC using # repetitions (# may not equal 1).
        Normality for errors is assumed.  This procedure continues to work also in the presence of gaps in the
        exogenous variables, although in this case, bootstrap samples for each unit are truncated to the first
        missing value encountered. Gaps in the dependent variable, instead, bear no consequence to the bootstrap
        sample size.

    first requests that the first-stage regression results be displayed.

    lsdv requests that the original LSDV regression results be displayed.


Options for predict

    xb calculates the linear prediction; that is, y[i,t-1]a + x[i,t]b.  This is the default.

    ue calculates the prediction of u + e[i,t].

    xbu calculates the prediction of y[i,t-1]a + x[i,t]b + u, the prediction including the fixed component.

    u calculates the prediction of u, the estimated fixed effect.

    e calculates the prediction of e[i,t].


Remarks

    xtlsdvc does not report analytical standard errors. Only bootstrap standard errors are reported, provided
    that vcov(#) is given.

    Bootstrap standard errors are downward biased when values for the unknown parameters are supplied through
    the matrix my, since the procedure, keeping my fixed over replications, neglects a source of variability of
    the bias-corrected LSDV estimator.


Saved results

    xtlsdvc saves in e():

    Scalars
        e(N)          number of observations
        e(Tbar)       average number of time periods
        e(sigma)      estimates of sigma through the within
                      residuals from the first-stage regression
        e(N_g)        number of groups

    Macros
        e(cmd)        xtlsdvc
        e(ivar)       panel variable
        e(depvar)     name of dependent variable
        e(predict)    program used to implement predict

    Matrices
        e(b)          xtlsdvc estimate
        e(b_lsdv)     coefficient vector of the uncorrected LSDV
        e(V_lsdv)     variance-covariance matrix of the uncorrected LSDV
        e(V)          variance-covariance matrix of the estimators

    Functions
        e(sample)     marks estimation sample


Examples

    . xtlsdvc n w k ys yr1980-yr1984, initial(ah)
    . xtlsdvc n w k ys yr1980-yr1984, initial(ab) bias(3)
    . xtlsdvc n w k ys yr1980-yr1984, initial(ab) bias(3) vcov(50)


References

    Bruno, G. S. F. 2005a.  Approximating the bias of the LSDV estimator for dynamic unbalanced panel data
        models.  Economics Letters 87: 361-366.

    ------. 2005b.  Estimation and inference in dynamic unbalanced panel data models with a small number of
        individuals.  CESPRI WP n.165. Universit?Bocconi-CESPRI, Milan.

    Bun, M. J. G. and J. F. Kiviet. 2003. On the diminishing returns of higher order terms in asymptotic
        expansions of bias.  Economics Letters 79: 145-152.

    Kiviet, J. F. 1995. On bias, inconsistency, and efficiency of various estimators in dynamic panel data
        models.  Journal of Econometrics 68: 53-78.

    ------. 1999. Expectation of expansions for estimators in a dynamic panel data model; some results for
        weakly exogenous Regressors.  In Analysis of Panel Data and Limited Dependent Variables, ed. c. Hsiao,
        K. Lahiri, L.-F. Lee, and M. H. Pesaran, 199-225.  Cambridge: Cambridge University Press.

    Roodman, D. M. 2003. XTABOND2: Stata module to extend xtabond dynamic panel-data estimator.  Statistical
        Software Components S435901, Boston College Department of Economics.


Author

    Giovanni S.F. Bruno
    Istituto di Economia Politica, Universit?Bocconi
    Milan, Italy
    giovanni.bruno@unibocconi.it


Also see

    Manual: [U] 23 Estimation and post-estimation commands,
            [U] 29 Overview of Stata estimation commands,
            [XT] xtabond, [XT] xtivreg, [R] ivreg

    Online:  estcom, ivreg, postest, xtabond, xtdes, xtivreg, xtreg, xtregar, xtsum
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
Sunknownay + 3 + 3 + 3 热心帮助其他会员

总评分: 学术水平 + 3  热心指数 + 3  信用等级 + 3   查看全部评分

8
mbygzh 发表于 2016-7-31 11:57:20
黃河泉 发表于 2016-7-31 11:10
哈哈!我"老人家"闲来无事,到处铺桥造路,希望对大家有一些帮助!
1. 先确定我们讲的是同样的事! lsdvc  ...
一开始我想用lsdv来着,然后发现lsdvc适用动态面板应该更好,c应该是biased-correlated,翻译过来是偏差校正的lsdv法,但是俩者都不太了解,好像相关资料也比较少。。。

9
mbygzh 发表于 2016-7-31 13:51:41
蓝色 发表于 2016-7-31 11:29
我猜他说的是下楼这个命令

---------------------------------------------------------------------- ...
是这个命令,蓝色版主,但是看不懂。。 这句However, since xtlsdvc calls xtreg, indepvars may not contain time-series operators; see xtreg., 是说能不能包括那种不随时间改变的变量,例如距离呢?

10
黃河泉 在职认证  发表于 2016-7-31 15:26:19
1. 謝謝"藍色"的資訊,雖然我知道類似之估計方法,但不知 Stata Journal 也有刊出相關文章與指令,受教了!
2. 顯然, xtlsdvc 乃是估計動態面板資料的另一種方法(最常用的恐怕是 GMM);此外 mbygzh 你最後談的 time-series operators,應該不是指"不能包括那种不随时间改变的变量",而是指 Stata 的 L.y, F.y, or D.y 等 lag, forward, or difference operators 等;但 xtreg 應該可以允  time-series operators,還是我誤解了?

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-25 03:39