📄 cusum.hlp
字号:
{smcl}
{* 14feb2005}{...}
{cmd:help cusum}{right:dialog: {bf:{dialog cusum}}}
{hline}
{title:Title}
{p2colset 5 18 20 2}{...}
{p2col :{hi:[R] cusum} {hline 2}}Cusum plots and tests for binary
variables{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 14 2}
{cmd:cusum} {it:yvar} {it:xvar}
{ifin}
[{cmd:,} {it:options}]
{synoptset 20 tabbed}{...}
{synopthdr}
{synoptline}
{syntab :Main}
{synopt :{opth gen:erate(newvar)}}save cusum in {it:newvar}{p_end}
{synopt :{opt yf:it(fitvar)}}calculate cusum against {it:fitvar}{p_end}
{synopt :{opt nog:raph}}suppress the plot{p_end}
{synopt :{opt noca:lc}}suppress cusum test statistics{p_end}
{syntab :Plot}
{synopt :{it:{help connect_options}}}affect the rendition of the plotted line{p_end}
{syntab :Add plot}
{synopt :{opth "addplot(addplot_option:plot)"}}add 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}{...}
{title:Description}
{pstd}
{opt cusum} graphs the cumulative sum (cusum) of a binary (0/1) variable
{it:yvar} against a (usually) continuous variable {it:xvar}.
{title:Options}
{dlgtab:Main}
{phang}
{opth generate(newvar)} saves the cusum in {it:newvar}.
{phang}
{opt yfit(fitvar)} calculates a cusum against {it:fitvar},
that is, the running sums of the "residuals" {it:fitvar} minus {it:yvar}.
Typically, {it:fitvar} is the predicted probability of a positive outcome
obtained from a logistic regression analysis.
{phang}
{opt nograph} suppresses the plot.
{phang}
{opt nocalc} suppresses calculation of the cusum test statistics.
{dlgtab:Plot}
{phang}
{it:connect_options} affect the rendition of the plotted line; see
{it:{help connect_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:Example}
{phang}{cmd:. cusum foreign weight}
{title:Also see}
{psee}
Manual: {hi:[R] cusum}
{psee}
Online: {helpb logistic}, {helpb logit}, {helpb probit}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -