📄 diagnostic_plots.hlp
字号:
{smcl}
{* 29mar2005}{...}
{cmd:help diagnostic plots} {...}
{right:dialogs: {bf:{dialog symplot}} {bf:{dialog quantile}} {bf:{dialog qqplot}}}
{right:{bf:{dialog qnorm}} {bf:{dialog pnorm}} {bf:{dialog qchi}} {bf:{dialog pchi}} }
{hline}
{title:Title}
{p2colset 5 29 31 2}{...}
{p2col :{hi:[R] diagnostic plots} {hline 2}}Distributional diagnostic plots{p_end}
{p2colreset}{...}
{title:Syntax}
{phang}Symmetry plot
{phang2}
{cmd:symplot}
{varname}
{ifin}
[{cmd:,} {it:{help diagnostic_plots##options1:options1}}]
{phang}Ordered values of varname against quantiles of uniform distribution
{phang2}
{cmd:quantile}
{varname}
{ifin}
[{cmd:,} {it:{help diagnostic_plots##options1:options1}}]
{phang}Quantiles of varname1 against quantiles of varname2
{phang2}{cmd:qqplot}
{it:{help varname:varname1}}
{it:{help varname:varname2}}
{ifin}
[{cmd:,} {it:{help diagnostic_plots##options1:options1}}]
{phang}Quantiles of varname against quantiles of normal distribution
{phang2}{cmd:qnorm}
{varname}
{ifin}
[{cmd:,} {it:{help diagnostic_plots##options2:options2}}]
{phang}Standardized normal probability plot
{phang2}{cmd:pnorm}
{varname}
{ifin}
[{cmd:,} {it:{help diagnostic_plots##options2:options2}}]
{phang}Quantiles of varname against quantiles of chi-squared distribution
{phang2}{cmd:qchi}
{varname}
{ifin}
[{cmd:,} {it:{help diagnostic_plots##options3:options3}}]
{phang}Chi-squared probability plot
{phang2}{cmd:pchi}
{varname}
{ifin}
[{cmd:,} {it:{help diagnostic_plots##options3:options3}}]
{synoptset 25 tabbed}{...}
{marker options1}{...}
{synopthdr :options1}
{synoptline}
{syntab :Plot}
INCLUDE help gr_markopt2
{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 {cmd:by()} documented in
{bind:{bf:[G]} {it:twoway_options}}{p_end}
{synoptline}
{p2colreset}{...}
{synoptset 25 tabbed}{...}
{marker options2}{...}
{synopthdr :options2}
{synoptline}
{syntab :Main}
{synopt :{opt g:rid}}add grid lines{p_end}
{syntab:Plot}
INCLUDE help gr_markopt2
{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 {cmd:by()} documented in
{bind:{bf:[G]} {it:twoway_options}}{p_end}
{synoptline}
{synoptset 25 tabbed}{...}
{marker options3}{...}
{synopthdr :options3}
{synoptline}
{syntab:Main}
{synopt :{opt g:rid}}add grid lines{p_end}
{synopt :{opt df(#)}}degrees of freedom of chi-squared distribution; default is {cmd:df(1)}{p_end}
{syntab:Plot}
INCLUDE help gr_markopt2
{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 {cmd:by()} documented in
{bind:{bf:[G]} {it:twoway_options}}{p_end}
{synoptline}
{p2colreset}{...}
{title:Description}
{pstd}
{cmd:symplot} graphs a symmetry plot of {varname}.
{pstd}
{cmd:quantile} plots the ordered values of {it:varname} against the
quantiles of a uniform distribution.
{pstd}
{cmd:qqplot} plots the quantiles of {it:varname1} against the quantiles of
{it:varname2} (Q-Q plot).
{pstd}
{cmd:qnorm} plots the quantiles of {it:varname} against the quantiles of
the normal distribution (Q-Q plot).
{pstd}
{cmd:pnorm} graphs a standardized normal probability (P-P plot).
{pstd}
{cmd:qchi} plots the quantiles of {it:varname} against the quantiles of a
chi-squared distribution (Q-Q plot).
{pstd}
{cmd:pchi} graphs a chi-squared probability (P-P plot).
{pstd}
See {help regress postestimation} for regression diagnostic plots and
{help logistic postestimation} for logistic regression diagnostic plots.
{title:Options for symplot, quantile, and qqplot}
{dlgtab:Plot}
INCLUDE help gr_markoptf
{dlgtab:Reference line}
{phang}
{opt rlopts(cline_options)} affect the rendition of the reference line;
see {it:{help cline_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 qnorm and pnorm}
{dlgtab:Main}
{phang}
{opt grid} adds grid lines at the .05, .10, .25, .50, .75, .90, and .95
quantiles when specified with {cmd:qnorm}. With {cmd:pnorm},
{opt grid} is equivalent to {cmd:yline(.25, .5, .75)}
{cmd:xline(.25, .5, .75)}.
{dlgtab:Plot}
INCLUDE help gr_markoptf
{dlgtab:Reference line}
{phang}
{opt rlopts(cline_options)} affect the rendition of the reference line;
see {it:{help cline_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 qchi and pchi}
{dlgtab:Main}
{phang}
{opt grid} adds grid lines at the .05, .10, .25, .50, .75, .90, and .95
quantiles when specified with {cmd:qnorm}. With {cmd:pnorm},
{opt grid} is equivalent to {cmd:yline(.25, .5, .75)}
{cmd:xline(.25, .5, .75)}.
{phang}
{opt df(#)} specifies the degrees of freedom of chi-squared distribution. The
default is 1.
{dlgtab:Plot}
INCLUDE help gr_markoptf
{dlgtab:Reference line}
{phang}
{opt rlopts(cline_options)} affect the rendition of the reference line;
see {it:{help cline_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:Examples}
{phang}{cmd:. symplot price}
{phang}{cmd:. quantile price}
{phang}{cmd:. qnorm price, grid}
{phang}{cmd:. pnorm price, grid}
{phang}{cmd:. generate weightd=weight if !foreign}{p_end}
{phang}{cmd:. generate weightf=weight if foreign}{p_end}
{phang}{cmd:. qqplot weightd weightf}
{title:Also see}
{psee}
Manual: {bf:[R] diagnostic plots}
{psee}
Online: {helpb cumul}, {helpb logistic},
{helpb lv}, {help regress postestimation}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -