cumul.hlp
来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· HLP 代码 · 共 90 行
HLP
90 行
{smcl}
{* 22jan2005}{...}
{cmd:help cumul} {right:dialog: {bf:{dialog cumul}}}
{hline}
{title:Title}
{p2colset 5 18 20 2}{...}
{p2col :{hi:[R] cumul} {hline 2}}Cumulative distribution{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 14 2}
{cmd:cumul}
{varname}
{ifin}
{weight}
{cmd:,}
{opt g:enerate(newvar)}
[{it:options}]
{synoptset 20 tabbed}{...}
{synopthdr}
{synoptline}
{syntab :Main}
{p2coldent :* {opth g:enerate(newvar)}}create variable {it:newvar}{p_end}
{synopt :{opt f:req}}use frequency units for cumulative{p_end}
{synopt :{opt eq:ual}}generate equal cumulatives for tied values{p_end}
{synoptline}
{p 4 6 2}
* {opt generate(newvar)} is required.{p_end}
{p 4 6 2}
{opt by} may be used with {opt cumul}; see {helpb by}.{p_end}
{p 4 6 2}
{opt fweight}s and {opt aweight}s are allowed; see {help weight}.{p_end}
{title:Description}
{pstd}
{opt cumul} creates {newvar}, defined as the empirical cumulative
distribution function of {varname}.
{title:Options}
{dlgtab:Main}
{phang}
{opth generate(newvar)} is required. It specifies
the name of the new variable to be created.
{phang}
{opt freq} specifies the cumulative be in frequency units; otherwise, it
is normalized so that {newvar} is 1 for the largest value of {it:varname}.
{phang}
{opt equal} requests that observations with equal values in
{varname} get the same cumulative value in {it:newvar}.
{title:Examples}
{pstd}
To graph cumulative:{p_end}
{phang2}{cmd:. cumul faminc, gen(cum)}{p_end}
{phang2}{cmd:. line cum faminc, sort}
{pstd}
To graph two cumulatives on the same graph:{p_end}
{phang2}{cmd:. cumul tempjan, gen(cjan)}{p_end}
{phang2}{cmd:. cumul tempjuly, gen(cjuly)}{p_end}
{phang2}{cmd:. stack cjan tempjan cjuly tempjuly, into(c temp) wide clear}{p_end}
{phang2}{cmd:. line cjan cjuly temp, sort}
{title:Also see}
{psee}
Manual: {bf:[R] cumul}
{psee}
Online:
{help diagnostic plots},
{helpb kdensity},
{helpb stack}
{p_end}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?