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

📄 logistic_postestimation.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
📖 第 1 页 / 共 2 页
字号:

{marker estatgof}{...}
{title:Syntax for estat gof}

{p 8 14 2}
{cmd:estat gof} {ifin} {weight} [{cmd:,} {it:gof_options}]

{synoptset 13 tabbed}{...}
{synopthdr :gof_options}
{synoptline}
{syntab :Main}
{synopt :{opt group(#)}}perform Hosmer-Lemeshow goodness-of-fit test using
{it:#} quantiles{p_end}
{synopt :{opt all}}execute test for all observations in the data{p_end}
{synopt :{opt out:sample}}adjust degrees of freedom for samples outside
estimation sample{p_end}
{synopt :{opt t:able}}display table of groups used for test{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}{opt fweight}s are allowed; see {help weight}.


{title:Options for estat gof}

{dlgtab:Main}

{phang}
{opt group(#)} specifies the number of quantiles to be used to group the data
for the Hosmer-Lemeshow goodness-of-fit test.  {cmd:group(10)} is typically
specified.  If this option is not given, the Pearson goodness-of-fit test is
computed using the covariate patterns in the data as groups.

{phang}
{opt all} requests that the statistic be computed for all observations in the
data, ignoring any {opt if} or {opt in} restrictions specified with
{cmd:logistic}.

{phang}
{opt outsample} adjusts the degrees of freedom for the Pearson and
Hosmer-Lemeshow goodness-of-fit tests for samples outside of the estimation
sample.

{phang}
{opt table} displays a table of the groups used for the Hosmer-Lemeshow or
Pearson goodness-of-fit test with predicted probabilities, observed and
expected counts for both outcomes, and totals for each group.


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

{p 8 13 2}
{cmd:lroc} [{depvar}] {ifin} {weight} [{cmd:,} {it:lroc_options}]

{synoptset 23 tabbed}{...}
{synopthdr :lroc_options}
{synoptline}
{syntab :Main}
{synopt :{opt all}}graph ROC curve for all observations in the data{p_end}
{synopt :{opt nog:raph}}suppress graph{p_end}

{syntab :Advanced}
{synopt :{opt beta(matname)}}row vector containing coefficients for a logistic
model{p_end}

{syntab :Plot}
INCLUDE help gr_markopt2
INCLUDE help gr_clopt

{syntab :Reference line}
{synopt :{opth rlop:ts(cline_options)}}affect rendition of the reference
line{p_end}

{syntab :Add plot}
{synopt :{opth "addplot(addplot_option:plot)"}}add other plots to the generated graph{p_end}

{syntab :Y-Axis, X-Axis, Title, Caption, Legend, Overall}
{synopt :{it:{help twoway_options}}}any options other than {opt by()} documented in {bind:{bf:[G]} {it:twoway_options}}{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}{opt fweight}s are allowed; see {help weight}.


{title:Options for lroc}

{dlgtab:Main}

{phang}
{opt all} requests that the statistic be computed for all observations in the
data, ignoring any {opt if} or {opt in} restrictions specified by
{cmd:logistic}.

{phang}
{opt nograph} suppresses graphical output.

{dlgtab:Advanced}

{phang}
{opt beta(matname)} specifies a row vector containing coefficients for a
logistic model.  The columns of the row vector must be labeled with the
corresponding names of the independent variables in the data.  The dependent
variable {depvar} must be specified immediately after the command name.

{dlgtab:Plot}

{phang}
{it:marker_options}, {it:marker_label_options}, and {it:cline_options}
affect the rendition of the ROC curve {hline 2} the plotted points connected
by lines.  These options affect the size and color of markers,
whether and how the markers are labeled, and whether and how the points are
connected; see {it:{help marker_options}}, {it:{help marker_label_options}},
and {it:{help cline_options}}.

{dlgtab:Reference line}

{phang}
{opt rlopts(cline_options)} affect the rendition of the reference line; see
{it:{help connect_options}}.

{marker addplot()}{...}
{dlgtab:Add plot}

{phang}
{opt addplot(plot)} provides a way to add other plots to the generated graph.
See {it:{help addplot_option}}.

{marker twoway_options}{...}
{dlgtab:Y-Axis, X-Axis, Title, Caption, Legend, Overall}

{phang}
{it:twoway_options} are any of the options documented in 
{it:{help twoway_options}}, excluding {opt by()}.  These include options for
titling the graph (see {it:{help title_options}}) and options for saving the
graph to disk (see {it:{help saving_option}}).


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

{p 8 14 2}
{cmd:lsens} [{depvar}] {ifin} {weight} [{cmd:,} {it:lsens_options}]

{synoptset 20 tabbed}{...}
{synopthdr :lsens_options}
{synoptline}
{syntab :Main}
{synopt :{opt all}}graph all observations in the data{p_end}
{synopt :{opth genp:rob(varname)}}create variable containing probability
cutoff{p_end}
{synopt :{opth gense:ns(varname)}}create variable containing sensitivity{p_end}
{synopt :{opth gensp:ec(varname)}}create variable containing specificity{p_end}
{synopt :{opt replace}}overwrite existing variables{p_end}
{synopt :{opt nog:raph}}suppress the graph{p_end}

{syntab :Advanced}
{synopt :{opt beta(matname)}}row vector containing coefficients for the
model{p_end}

{syntab :Plot}
{synopt :{it:{help scatter##connect_options:connect_options}}}affect 
        rendition of the plotted points connected by lines{p_end}

{syntab :Add plot}
{synopt :{opth "addplot(addplot_option:plot)"}}add other plots to the generated graph{p_end}

{syntab :Y-Axis, X-Axis, Title, Caption, Legend, Overall}
{synopt :{it:{help twoway_options}}}any options other than {opt by()} documented in {bind:{bf:[G]} {it:twoway_options}}{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}{opt fweight}s are allowed; see {help weight}.


{title:Options for lsens}

{dlgtab:Main}

{phang}
{opt all} requests that the statistic be computed for all observations in the
data, ignoring any {opt if} or {opt in} restrictions specified with
{cmd:logistic}.

{phang}
{opth genprob(varname)}, {opth gensens(varname)}, and {opth genspec(varname)}
specify the names of new variables created to contain, respectively, the
probability cutoffs and the corresponding sensitivity and specificity.

{phang}
{opt replace} requests that existing variables specified for {opt genprob()},
{opt gensens()}, or {opt genspec()} be overwritten.

{phang}
{opt nograph} suppresses graphical output.

{dlgtab:Advanced}

{phang}
{opt beta(matname)} specifies a row vector containing coefficients for a
logistic model.  The columns of the row vector must be labeled with the
corresponding names of the independent variables in the data.  The dependent
variable {depvar} must be specified immediately after the command name.  

{dlgtab:Plot}

{phang}
{it:connect_options} affect the rendition of the plotted points connected by
lines; see {it:{help scatter##connect_options:connect_options}} in 
{helpb twoway scatter}.

{dlgtab:Add plot}

{phang}
{opt addplot(plot)}; see
{help logistic postestimation##addplot():Options for lroc}.

{dlgtab:Y-Axis, X-Axis, Title, Caption, Legend, Overall}

{phang}
{it:twoway_options}; see
{help logistic postestimation##twoway_options:Options for lroc}.


{title:Examples}

{phang}{cmd:. logistic low age lwt race2 race3 smoke ptl ht ui}{p_end}
{phang}{cmd:. lroc}{p_end}
{phang}{cmd:. lsens}{p_end}
{phang}{cmd:. estat class}{p_end}
{phang}{cmd:. estat gof}{p_end}
{phang}{cmd:. predict phat if e(sample)}{p_end}
{phang}{cmd:. predict r, resid}{p_end}


{title:Also see}

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

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

⌨️ 快捷键说明

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