楼主: LSC893045160
9330 5

[回归分析求助] 模型回归以后,怎么反过来求y的估计值啊? [推广有奖]

  • 0关注
  • 0粉丝

本科生

20%

还不是VIP/贵宾

-

威望
0
论坛币
9 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
538 点
帖子
128
精华
0
在线时间
31 小时
注册时间
2011-1-19
最后登录
2021-11-4

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
面板数据,做了固定效应或随机效应回归,然后怎么估计被解释变量y的值啊???
二维码

扫码加我 拉你入群

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

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

关键词:估计值 随机效应回归 随机效应 面板数据 固定效应 模型

沙发
emilychou 发表于 2013-8-11 21:50:32 |只看作者 |坛友微信交流群
把系数带入方程式计算即可!
[fly]ilikeuandulikeme[/fly]

使用道具

藤椅
LSC893045160 发表于 2013-8-11 22:11:21 |只看作者 |坛友微信交流群
面板数据也可以这样做吗??那用predict 可以得到估计值吗??两者什么区别??

使用道具

板凳
hubifeng? 学生认证  发表于 2013-8-17 20:16:54 |只看作者 |坛友微信交流群
LSC893045160 发表于 2013-8-11 22:11
面板数据也可以这样做吗??那用predict 可以得到估计值吗??两者什么区别??
help xtreg postestimation                   predict dialogs:  re/be/fe/mle  pa
                                                     dialog:  xttest0         
                                                   also see:  xtreg           
------------------------------------------------------------------------------

Title

    [XT] xtreg postestimation -- Postestimation tools for xtreg


Description

    The following postestimation commands are of special interest after
    xtreg:

    command        description
    ------------------------------------------------------------------------
    xttest0        Breusch and Pagan LM test for random effects
    ------------------------------------------------------------------------

    The following standard postestimation commands are also available:

    command          description
    ------------------------------------------------------------------------
    (1) estat        AIC, BIC, VCE, and estimation sample summary
        estimates    cataloging estimation results
        hausman      Hausman's specification test
        lincom       point estimates, standard errors, testing, and
                       inference for linear combinations of coefficients
        lrtest       likelihood-ratio test
        margins      marginal means, predictive margins, marginal effects,
                       and average marginal effects
        nlcom        point estimates, standard errors, testing, and
                       inference for nonlinear combinations of coefficients
        predict      predictions, residuals, influence statistics, and other
                       diagnostic measures
        predictnl    point estimates, standard errors, testing, and
                       inference for generalized predictions
        test         Wald tests of simple and composite linear hypotheses
        testnl       Wald tests of nonlinear hypotheses
    ------------------------------------------------------------------------
    (1) estat ic is not appropriate with xtreg, be, xtreg, pa, or xtreg, re.


Special-interest postestimation commands

    xttest0, for use after xtreg, re, presents the Breusch and Pagan
    Lagrange multiplier test for random effects, a test that Var(v_i)=0.


Syntax for predict

    For all but the population-averaged model

        predict [type] newvar [if] [in] [, statistic nooffset]


    Population-averaged model

        predict [type] newvar [if] [in] [, PA_statistic nooffset]


    statistic      description
    ------------------------------------------------------------------------
    Main
      xb           xb, fitted values; the default
      stdp         calculate standard error of the fitted values
      ue           u_i + e_it, the combined residual
    * xbu          xb + u_i, prediction including effect
    * u            u_i, the fixed- or random-error component
    * e            e_it, the overall 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.

    PA_statistic   description
    ------------------------------------------------------------------------
    Main
      mu           probability of depvar; considers the offset()
      rate         probability of depvar
      xb           calculate linear prediction
      stdp         calculate standard error of the linear prediction
      score        first derivative of the log likelihood with respect to xb
    ------------------------------------------------------------------------
    These statistics are available both in and out of sample; type predict
      ... if e(sample) ... if wanted only for the estimation sample.


Menu

    Statistics > Postestimation > Predictions, residuals, etc.


Options for predict

        +------+
    ----+ Main +------------------------------------------------------------

    xb calculates the linear prediction, that is, a + bx_it.  This is the
        default for all except the population-averaged model.

    stdp calculates the standard error of the linear prediction.  For the
        fixed-effects model, this excludes the variance due to uncertainty
        about the estimate of u_i.

    mu and rate both calculate the predicted probability of depvar.  mu
        takes into account the offset(), and rate ignores those adjustments.
        mu and rate are equivalent if you did not specify offset().  mu is
        the default for the population-averaged model.

    ue calculates the prediction of u_it + e_it.

    xbu calculates the prediction of a + bx_it + u_i, the prediction
        including the fixed or random component.

    u calculates the prediction of u_i, the estimated fixed or random
        effect.

    e calculates the prediction of e_it.

    score calculates the equation-level score.

    nooffset is relevant only if you specified offset(varname) for xtreg.
        It modifies the calculations made by predict so that they ignore the
        offset variable; the linear prediction is treated as xb rather than
        xb + offset.


Syntax for xttest0

        xttest0


Menu

    Statistics > Longitudinal/panel data > Linear models > Lagrange
        multiplier test for random effects


Examples

    Setup
        . webuse nlswork
        . xtset idcode

    Fit random-effects model
        . xtreg ln_w grade age c.age#c.age ttl_exp c.ttl_exp#c.ttl_exp
            tenure c.tenure#c.tenure 2.race not_smsa south, re

    Store random-effects results for later use
        . estimates store random_effects

    Breusch and Pagan Lagrangian multiplier test for random effects
        . xttest0

    Fit fixed-effects model
        . xtreg ln_w grade age c.age#c.age ttl_exp c.ttl_exp#c.ttl_exp
            tenure c.tenure#c.tenure 2.race not_smsa south, fe

    Hausman specification test
        . hausman . random_effects


Also see

    Manual:  [XT] xtreg postestimation

      Help:  [XT] xtreg

使用道具

报纸
捣蛋布叮 发表于 2013-12-21 11:02:37 |只看作者 |坛友微信交流群
好的

使用道具

地板
肉肉wwww 学生认证  发表于 2021-3-8 20:50:26 |只看作者 |坛友微信交流群
同问啊

使用道具

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

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-28 01:34