楼主: xuehe
7158 5

[问答] 分组回归、分位数回归、面板分位数回归的例子及其esttab\outreg2输出到word [推广有奖]

贵宾

已卖:14811份资源

学术权威

87%

还不是VIP/贵宾

-

威望
8
论坛币
577240 个
通用积分
483.4962
学术水平
370 点
热心指数
366 点
信用等级
207 点
经验
356305 点
帖子
4313
精华
8
在线时间
2646 小时
注册时间
2004-12-31
最后登录
2025-12-16

楼主
xuehe 发表于 2019-11-3 12:29:18 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
面板分位数回归的stata包需要在stata14平台跑
ssc install xtqreg
ssc install esttab
findit esttab

esttab,outreg2如上述命令在线无法安装,下载附件的包,手动安装在stata1*/ado/plus/....
help xtqreg

--------------------------------------------------------------------------------

Title

       xtqreg -- Quantile regression with fixed effects


Syntax


        xtqreg depvar indepvars [if] [in] [, options]


    options                    Description
    --------------------------------------------------------------------------

      quantile(#[#[# ...]])    estimate # quantile; default is quantile(.5)

      id                       specifies the variable defining the panel

      ls                       displays the estimates of the location and
                                 scale parameters

Description

    xtqreg estimates quantile regressions with fixed effects using the method
    of Machado and Santos Silva (2019).



Options

    quantile(#[#[# ...]]) specifies the quantile to be estimated and should be
        a number strictly between 0 and 1. The default value of 0.5
        corresponds to the median.  The quantiles can be specified as a list,
        in which case the regression will be estimated for each quantile.

    id(panelvar) specifies that the variable defining the panel is panelvar.

    ls displays the estimates of the location and scale parameters


Remarks

    xtqreg was written by J.A.F. Machado and J.M.C. Santos Silva and it is not
    an official Stata command; we are grateful to Fernando Rios-Avila for help
    writing this command.  For further help and support, please contact
    jmcss@surrey.ac.uk. Please notice that this software is provided as is,
    without warranty of any kind, express or implied, including but not
    limited to the warranties of merchantability, fitness for a particular
    purpose and noninfringement.  In no event shall the authors be liable for
    any claim, damages or other liability, whether in an action of contract,
    tort or otherwise, arising from, out of or in connection with the software
    or the use or other dealings in the software.


Examples

    ----------------------------------------------------------------------------
    Setup
        . sysuse auto

    Median regression with fixed effects for headroom
        . xtqreg price weight length i.foreign, i(headroom)

    Estimate .25 quantile with fixed effects for headroom
        . xtqreg price weight length i.foreign, i(headroom) quantile(.25)

    Estimate the nine deciles with fixed effects for headroom
        . xtqreg price weight length i.foreign, i(headroom)
            quantile(.1(0.1)0.9)

    Median regression with fixed effects for headroom reporting the location
    and scale estimates
        . xtqreg price weight length i.foreign, i(headroom) quantile(.25) ls


    ----------------------------------------------------------------------------


Saved results

    When only one quantile is estimated, xtreg saves the following results in
    e():

    Scalars   
      e(N)           number of observations

    Macros   
      e(cmd)         xtqreg
      e(depvar)      name of dependent variable
      e(properties)  b V

    Matrices  
      e(b)           coefficient vector
      e(V)           covariance matrix
      e(q)           estimated quantile of the scaled errors
      e(b_location)  location-coefficients vector
      e(V_location)  location-coefficients covariance matrix
      e(b_scale)     scale-coefficients vector
      e(V_scale)     scale-coefficients covariance matrix


    Functions
      e(sample)      marks estimation sample

    If multiple quantiles are estimated, xtqreg also saves b, V, and q for
    each quantile with names of the form (for the first quartile) e(b_25),
    e(V_25), and e(q_25). In this case, the matrices e(b), e(V), and e(q)
    contain the results for the imated quantile.


References

    Machado, J.A.F. and Santos Silva, J.M.C. (2019), Quantiles via Moments,
        Journal of Econometrics, forthcoming.


Also see

    Manual:  [R] xtreg
esttab_outreg2_stata.rar (817.92 KB, 需要: 3 个论坛币)




二维码

扫码加我 拉你入群

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

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


已有 1 人评分经验 收起 理由
liujianfang + 100 精彩帖子

总评分: 经验 + 100   查看全部评分

沙发
xuehe(未真实交易用户) 发表于 2019-11-3 12:47:53
stata置信区间散点图等绘制.rar (684.73 KB, 需要: 2 个论坛币)


藤椅
三重虫(未真实交易用户) 发表于 2019-11-3 14:35:52

板凳
唯我有荆扉7(真实交易用户) 发表于 2019-12-28 12:21:23
用xtqreg做完面板分位数回归后,怎么作图啊,这里不太懂

报纸
school(真实交易用户) 在职认证  发表于 2021-4-1 20:08:08

地板
kehuiyu(真实交易用户) 发表于 2021-5-21 14:42:49 来自手机
唯我有荆扉7 发表于 2019-12-28 12:21
用xtqreg做完面板分位数回归后,怎么作图啊,这里不太懂
请问这个问题解决了吗,我最近也遇到了,不知道怎么做

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

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