📄 hetprob_postestimation.hlp
字号:
{smcl}
{* 22mar2005}{...}
{cmd:help hetprob postestimation}{right:dialog: {bf:{dialog hetpr_p:predict}}}
{right:also see: {helpb hetprob}}
{hline}
{title:Title}
{p2colset 5 35 37 2}{...}
{p2col :{hi:[R] hetprob postestimation} {hline 2}}Postestimation tools for hetprob{p_end}
{p2colreset}{...}
{title:Description}
{pstd}
The following postestimation commands are available for {cmd:hetprob}:
{synoptset 13 tabbed}{...}
{p2coldent :command}description{p_end}
{synoptline}
INCLUDE help post_adjust1star
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 hetprob 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_lnsigma2}{c )-} {ifin} {cmd:,} {opt sc:ores}
{synoptset 11 tabbed}{...}
{synopthdr :statistic}
{synoptline}
{syntab :Main}
{synopt :{opt p}}the probability of a positive outcome; the default{p_end}
{synopt :{opt xb}}xb, the linear prediction{p_end}
{synopt :{opt s:igma}}the standard deviation{p_end}
{synoptline}
{p2colreset}{...}
INCLUDE help esample
{title:Options for predict}
{dlgtab:Main}
{phang}
{opt p}, the default, calculates the probability of a positive outcome.
{phang}
{opt xb} calculates the linear prediction.
{phang}
{opt sigma} calculates the standard deviation.
{phang}
{opt nooffset} is relevant only if you specified {opt offset(varname)} for
{cmd:hetprob}. 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.
{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 scale equation ({hi:lnsigma2}).
{title:Example}
{phang}{cmd:. hetprob y x, het(xhet) robust nolog}{p_end}
{phang}{cmd:. predict phat}{p_end}
{phang}{cmd:. gen diff_p = phat - p}{p_end}
{phang}{cmd:. summarize diff_p}{p_end}
{phang}{cmd:. predict sigmahat, sigma}{p_end}
{title:Also see}
{psee}
Manual: {bf:[R] hetprob postestimation}
{psee}
Online: {helpb hetprob};{break}
{helpb adjust}, {helpb estat},
{helpb estimates}, {helpb lincom}, {helpb lrtest}, {helpb mfx},
{helpb nlcom}, {helpb predict}, {helpb predictnl},
{helpb suest}, {helpb test}, {helpb testnl}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -