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

📄 svy_nbreg_postestimation.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 29mar2005}{...}
{cmd:help svy: nbreg postestimation}{...}
{right:dialogs:  {bf:{dialog svy_nbreg_p:predict}} for {cmd:svy: nbreg}{space 1}}
{right:{bf:{dialog svy_gnbreg_p:predict}} for {cmd:svy: gnbreg}}
{right:also see:  {helpb "svy: nbreg"}{space 13}}
{hline}

{title:Title}

{p2colset 5 40 42 2}{...}
{p2col :{hi:[SVY] svy: nbreg postestimation} {hline 2}}Postestimation
tools for {cmd:svy: nbreg}{p_end}
{p2colreset}{...}


{title:Description}

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

INCLUDE help svy_postestimation


{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}{cmd:*} |
	{newvar:_reg} {newvar:_disp}
	{c )-}
	{ifin} {cmd:,} {opt sc:ores}

{synoptset 13 tabbed}{...}
{synopthdr:statistic}
{synoptline}
{syntab: Main}
{synopt :{opt n}}predicted number of events; the default{p_end}
{synopt :{opt ir}}incidence rate{p_end}
{synopt :{opt xb}}linear prediction{p_end}
{synopt :{opt stdp}}standard error of the linear prediction{p_end}
{synoptline}

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

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


{title:Options for predict}

{dlgtab:Main}

{phang}
{opt n}, the default, calculates the predicted number of events, which
is exp(xb) if neither {opt offset()} nor {opt exposure()} was specified
when the model was fitted, or 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, which is xb if neither
{opt offset()} nor {opt exposure()} was specified; xb+offset if
{opt offset()} was specified; or xb+ln(exposure) if {opt exposure()} was
specified; see {opt nooffset} below.

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

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

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

{phang}
{opt scores} calculates the 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:. webuse alq99_00}
{p_end}
{phang}
{cmd:. gen drinkdays = alq120q if alq120q <= 365}
{p_end}
{phang}
{cmd:. xi: svy: nbreg drinkdays ridageyr i.ridreth1, irr}
{p_end}

{phang}
{cmd:. predict ir_drink if e(sample), ir}
{p_end}
{phang}
{cmd:. sum ir_drink drinkdays if e(sample)}
{p_end}


{title:Also see}

{psee}
Manual:  {bf:[SVY] svy: nbreg postestimation}

{psee}
Online:  {helpb "svy: nbreg"};{break}
{helpb svy estat:estat},
{helpb estimates},
{helpb lincom},
{helpb mfx},
{helpb nlcom},
{helpb predictnl},
{helpb suest},
{helpb test},
{helpb testnl}
{p_end}

⌨️ 快捷键说明

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