📄 xtnbreg_postestimation.hlp
字号:
{smcl}
{* 07apr2005}{...}
{cmd:help xtnbreg postestimation}{...}
{right:predict dialogs: {bf:{dialog xtnbreg_refe_p:re/fe}} {bf:{dialog xtnbreg_pa_p:pa}}}
{right:also see: {helpb xtnbreg}{space 2}}
{hline}
{title:Title}
{p2colset 5 36 38 2}{...}
{p2col :{hi:[XT] xtnbreg postestimation} {hline 2}}Postestimation tools for xtnbreg{p_end}
{p2colreset}{...}
{title:Description}
{pstd}
The following postestimation commands are available for {cmd:xtnbreg}:
{synoptset 13 tabbed}{...}
{p2coldent :command}description{p_end}
{synoptline}
INCLUDE help post_adjust2star
{p2coldent :+ {helpb estat}}AIC, BIC, VCE, and estimation sample summary{p_end}
INCLUDE help post_estimates
INCLUDE help post_lincom
INCLUDE help post_lrtest
INCLUDE help post_mfx
INCLUDE help post_nlcom
{synopt :{helpb xtnbreg postestimation##predict:predict}}predictions, residuals, influence statistics, and other diagnostic measures{p_end}
INCLUDE help post_predictnl
INCLUDE help post_test
INCLUDE help post_testnl
{synoptline}
{p2colreset}{...}
{p 4 6 2}* {cmd:adjust} will not work with time-series operators.{p_end}
{p 4 6 2}
+ {cmd: estat ic} will not work with {cmd: xtnbreg, pa}.{p_end}
{marker predict}{...}
{title:Syntax for predict}
{pstd}
Random-effects (RE) and conditional fixed-effects (FE) overdispersion models
{p 8 16 2}
{cmd:predict} {dtype} {newvar} {ifin} [{cmd:,}
{it:{help xtnbreg_postestimation##randomandfixed:RE/FE_statistic}}
{opt nooff:set} ]
{pstd}
Population-averaged (PA) model
{p 8 16 2}
{cmd:predict} {dtype} {newvar} {ifin} [{cmd:,}
{it:{help xtnbreg_postestimation##popaverage:PA_statistic}}
{opt nooff:set} ]
{marker randomandfixed}{...}
{synoptset 15 tabbed}{...}
{synopthdr :RE/FE_statistic}
{synoptline}
{syntab:Main}
{synopt :{opt xb}}calculate linear prediction; the default{p_end}
{synopt :{opt stdp}}calculate standard error of the linear prediction{p_end}
{synopt :{opt nu0}}calculate predicted number of events; assumes fixed or random effect is zero{p_end}
{synopt :{opt iru0}}calculate predicted incidence rate; assumes fixed or random effect is zero{p_end}
{synoptline}
{p2colreset}{...}
{marker popaverage}{...}
{synoptset 15 tabbed}{...}
{synopthdr :PA_statistic}
{synoptline}
{syntab:Main}
{synopt :{opt mu}}calculate predicted number of events; considers the {opt offset()}; the default{p_end}
{synopt :{opt rate}}calculate predicted number of events{p_end}
{synopt :{opt xb}}calculate linear prediction{p_end}
{synopt :{opt stdp}}calculate standard error of the linear prediction{p_end}
{synopt :{opt sc:ore}}first derivative of the log likelihood with respect to xb{p_end}
{synoptline}
{p2colreset}{...}
INCLUDE help esample
{title:Options for predict}
{dlgtab:Main}
{phang}
{opt xb} calculates the linear prediction. This is the default for the
random-effects and fixed-effects models.
{phang}
{opt stdp} calculates the standard error of the linear prediction.
{phang}
{opt nu0} calculates the predicted number of events, assuming a zero fixed or
random effect.
{phang}
{opt iru0} calculates the predicted incidence rate, assuming a zero fixed or
random effect.
{phang}
{opt mu} and {opt rate} both calculate the predicted number of events.
{opt mu} takes into account the {opt offset()}, and {opt rate} ignores those
adjustments. {opt mu} and {opt rate} are equivalent if you did not specify
{opt offset()}. {opt mu} is the default for the population-averaged model.
{phang}
{opt score} calculates the equation-level score.
{phang}
{opt nooffset} is relevant only if you specified {opth offset(varname)} for
{cmd:xtnbreg}. It modifies the calculations made by {cmd:predict} so that
they ignore the offset variable; the linear prediction is treated as xb rather
than xb + offset.
{title:Examples}
{phang}{cmd:. xtnbreg y x, i(id)}{p_end}
{phang}{cmd:. predict cnt, nu0}{p_end}
{phang}{cmd:. xtnbreg y x, i(id) pa}{p_end}
{phang}{cmd:. predict mean, mu}{p_end}
{title:Also see}
{psee}
Manual: {bf:[XT] xtnbreg postestimation}
{psee}
Online: {helpb xtnbreg};{break}
{helpb adjust}, {helpb constraint},
{helpb estimates}, {helpb lincom}, {helpb lrtest},
{helpb mfx}, {helpb nlcom},
{helpb predict}, {helpb predictnl}, {helpb test}, {helpb testnl}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -