⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nbreg_postestimation.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 22mar2005}{...}
{cmd:help nbreg postestimation}{...}
{right:dialogs:  {dialog nbreg_p:nbreg predict} }
{right:{dialog gnbreg_p:gnbreg predict}}
{right:also see:  {helpb nbreg}         }
{hline}

{title:Title}

{p2colset 5 33 35 2}{...}
{p2col :{hi:[R] nbreg postestimation} {hline 2}}Postestimation tools for nbreg and gnbreg{p_end}
{p2colreset}{...}


{title:Description}

{pstd}
The following postestimation commands are available for {cmd:nbreg} and
{cmd:gnbreg}:

{synoptset 13 tabbed}{...}
{p2coldent :command}description{p_end}
{synoptline}
INCLUDE help post_adjust2star
INCLUDE help post_estat
INCLUDE help post_estimates
INCLUDE help post_lincom
INCLUDE help post_linktest
INCLUDE help post_lrtest
INCLUDE help post_mfx
INCLUDE help post_nlcom
{synopt :{helpb nbreg postestimation##predict:predict}}predictions, residuals, influence statistics, and other diagnostic measures{p_end}
INCLUDE help post_predictnl
INCLUDE help post_suest
INCLUDE help post_test
INCLUDE help post_testnl
{synoptline}
{p2colreset}{...}
{p 4 6 2}* {cmd:adjust} does not work with time-series operators.


{marker predict}{...}
{title:Syntax for predict}

{p 8 16 2}
{cmd:predict} {dtype} {newvar} {ifin} [{cmd:,} {it:statistic} 
{opt nooff:set}]

{p 8 16 2}
{cmd:predict} {dtype} {c -(}{it:stub*}{c |}{it:newvar_reg}
 {it:newvar_disp}{c )-}
 {ifin} {cmd:,} {opt sc:ores}

{synoptset 11 tabbed}{...}
{synopthdr :statistic}
{synoptline}
{syntab :Main}
{synopt :{cmd:n}}predicted number of events (the default){p_end}
{synopt :{cmd:ir}}incidence rate (equivalent to {cmd:predict} ..., {cmd:n nooffset}){p_end}
{synopt :{cmd:xb}}linear prediction{p_end}
{synopt :{cmd:stdp}}standard error of the linear prediction{p_end}
{synoptline}
{p2colreset}{...}

{pstd}
In addition, relevant only after {cmd:gnbreg} are

{synoptset 11 tabbed}{...}
{synopthdr :statistic}
{synoptline}
{syntab :Main}
{synopt :{opt a:lpha}}predicted values of alpha{p_end}
{synopt :{opt lna:lpha}}predicted values of ln(alpha){p_end}
{synopt :{opt stdpl:na}}standard error of predicted ln(alpha){p_end}
{synoptline}
{p2colreset}{...}
INCLUDE help esample


{title:Options for predict}

{phang}
{opt n}, the default, calculates the predicted number of events, which
is exp(xb) if neither {opth offset:(varname:varname_o)}
nor {opt exposure(varname_e)}
was specified when the model was fitted; exp(xb + offset) if
{opt offset()} was specified; or exp(xb)*exposure if {opt exposure()} was
specified.

{phang}
{opt ir} calculates the incidence rate exp(xb), the predicted number
of events when exposure is 1.  This is equivalent to specifying both
{opt n} and {opt nooffset} options.

{phang}
{opt xb} calculates the linear prediction.

{phang}
{opt stdp} calculates the standard error of the linear prediction.

{phang}
{opt alpha}, {opt lnalpha}, and {opt stdplna} are relevant after {cmd:gnbreg}
estimation only; they produce the predicted values of alpha or ln(alpha) and
the standard error of the predicted ln(alpha), respectively.

{phang}
{opt nooffset} is relevant only if you specified {opth offset(varname)} or
{opt exposure(varname)} when you fitted the model.  It modifies the
calculations made by {cmd:predict} so that they ignore the
offset or exposure variable; the linear prediction is treated as xb rather
than as xb + offset.  Specifying {cmd:predict} ...{cmd:,} {opt nooffset} is
equivalent to specifying {cmd:predict} ...{cmd:,} {opt ir}.

{phang}
{opt scores} calculates equation-level score variables.

{pmore}
The first new variable will contain the derivative of the log likelihood with
respect to the regression equation.

{pmore}
The second new variable will contain the derivative of the log likelihood with
respect to the dispersion equation.


{title:Examples}

{phang}{cmd:. nbreg deaths coh2 coh3, exposure(obstime)}{p_end}
{phang}{cmd:. predict dhat if e(sample)}{p_end}
{phang}{cmd:. predict rate, ir}


{title:Also see}

{psee}
Manual:  {bf:[R] nbreg postestimation}

{psee}
Online:  {helpb nbreg};{break}
{helpb adjust}, {helpb estimates},
{helpb lincom}, {helpb linktest}, {helpb lrtest}, {helpb mfx}, {helpb nlcom},
{helpb predictnl}, {helpb suest}, {helpb test}, {helpb testnl}
{p_end}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -