📄 fracpoly_postestimation.hlp
字号:
{smcl}
{* 07mar2005}{...}
{cmd:help fracpoly postestimation}{right:dialogs: {bf:{dialog fracplot}} {bf:{dialog fracpred}}}
{right:also see: {helpb fracpoly}{space 10}}
{hline}
{title:Title}
{p2colset 5 36 38 2}{...}
{p2col :{hi:[R] fracpoly postestimation} {hline 2}}Postestimation tools for
fracpoly{p_end}
{p2colreset}{...}
{title:Description}
{pstd}
The following postestimation commands are available for {opt fracpoly}:
{synoptset 11}{...}
{p2coldent :command}description{p_end}
{synoptline}
INCLUDE help post_adjust3
INCLUDE help post_estat
INCLUDE help post_estimates
{synopt :{helpb fracpoly postestimation##fracplot/fracpred:fracplot}}plot data and fit{p_end}
{synopt :{helpb fracpoly postestimation##fracplot/fracpred:fracpred}}create variable containing the prediction, deviance residuals, or SEs of fitted values{p_end}
INCLUDE help post_lincom
INCLUDE help post_linktest
INCLUDE help post_lrtest
INCLUDE help post_mfx
INCLUDE help post_nlcom
{synopt :{helpb fracpoly 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}{...}
{title:Command-specific postestimation commands}
{pstd}
{opt fracplot} plots the data and fit, with 95% confidence limits, from
the most recently fitted fractional polynomial model. The data and fit are
plotted against {it:varname}, which may be {it:xvar1} or another of the
covariates ({it:xvar2}, ..., or a variable from {it:xvarlist}). If
{it:varname} is not specified, {it:xvar1} is assumed.
{pstd}
{opt fracpred} creates {it:newvar} containing the fitted index or
deviance residuals for the whole model, or the fitted index or its standard
error for {it:varname}, which may be {it:xvar1} or another covariate.
{marker predict}{...}
{title:Syntax for predict}
{pstd}
The behavior of {cmd:predict} following {opt fracpoly} is determined by
{it:regression_cmd}. See the corresponding
{it:regression_cmd} {bf:postestimation} entry for available {opt predict}
options.
{pstd}
Also see information on {cmd:fracpred} below.
{marker fracplot/fracpred}{...}
{title:Syntax for fracplot and fracpred}
{phang}
Plot data and fit from most recently fitted fractional polynomial model
{p 8 17 2}
{cmd:fracplot}
[{varname}]
{ifin}
[{cmd:,}
{it:{help fracpoly postestimation##fracplot_options:fracplot_options}}]
{p_end}
{phang}
Create variable containing the prediction, deviance residuals, or SEs of fitted values
{p 8 17 2}
{cmd:fracpred}
{newvar}
[{cmd:,}
{it:{help fracpoly postestimation##fracpred_options:fracpred_options}}]
{p_end}
{synoptset 25 tabbed}{...}
{marker fracplot_options}{...}
{synopthdr :fracplot_options}
{synoptline}
{syntab :Plot}
INCLUDE help gr_markopt2
{syntab :Fitted line}
{synopt :{opth lineop:ts(cline_options)}}affect rendition of the fitted
line{p_end}
{syntab :CI}
{synopt :{opth ciop:ts(area_options)}}affect rendition of the confidence
bands{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}{...}
{synoptset 25}{...}
{marker fracpred_options}{...}
{synopthdr :fracpred_options}
{synoptline}
{synopt :{opth f:or(varname)}}compute prediction variable for
{it:varname}{p_end}
{synopt :{opt d:resid}}compute deviance residuals{p_end}
{synopt :{opt s:tpd}}compute standard errors of the fitted values
{it:varname}{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}
Note that {opt fracplot} and {opt fracpred, dresid} are not allowed after
{opt fracpoly} with {opt clogit} or {opt probit}.
{p_end}
{title:Options for fracplot}
{dlgtab:Plot}
INCLUDE help gr_markoptf
{dlgtab:Fitted line}
{phang}
{opt lineopts(cline_options)} affect the rendition of the fitted
line; see {it:{help cline_options}}.
{dlgtab:CI}
{phang}
{opt ciopts(area_options)} affect the rendition of the confidence bands; see
{it:{help area_options}}.
{dlgtab:Add plot}
{phang}
{opt addplot(plot)} provides a way to add other plots to the
generated graph. See {it:{help addplot_option}}.
{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}}).
{title:Options for fracpred}
{phang}
{opth for(varname)} specifies (partial)
prediction for variable {it:varname}. The fitted values are adjusted to the
value specified by the {opt adjust()} option in {opt fracpoly}.
{phang}
{opt dresid} specifies that deviance residuals be calculated.
{phang}
{opt stdp} specifies calculation of the standard errors of the fitted
values {it:varname}, adjusted for all the other predictors at the values
specified by {opt adjust()}.
{title:Examples}
{phang}{cmd:. fracpoly logit foreign mpg displ weight, compare degree(1)}{p_end}
{phang}{cmd:. fracplot}{p_end}
{phang}{cmd:. fracplot mpg}
{phang}{cmd:. fracpoly regress mpg weight -2 displ -1}{p_end}
{phang}{cmd:. fracpred wfit, for(weight)}{p_end}
{phang}{cmd:. fracpred wse, for(weight) stdp}{p_end}
{phang}{cmd:. fracpred dfit, for(displ)}{p_end}
{phang}{cmd:. fracpred dr, dresid}
{title:Also see}
{psee}
Manual: {bf:[R] fracpoly postestimation}
{psee}
Online:
{helpb fracpoly};{break}
{helpb adjust},
{helpb estimates},
{helpb lincom},
{helpb linktest},
{helpb lrtest},
{helpb mfx},
{helpb nlcom},
{helpb predictnl},
{helpb test},
{helpb testnl}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -