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

📄 sts_graph.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
📖 第 1 页 / 共 2 页
字号:
as when you specify {opt gwood} or {opt cna}{hline 2}because, otherwise it
would be too confusing.

{phang}
{opt gwood} indicates you want pointwise Greenwood confidence bands drawn
around the survivor (failure) function.  The default is not to include these
bands.  {opt gwood} is not allowed if you specify the {opt adjustfor()}
option, nor is it allowed if you have {help pweight}ed data.  This option
implies the {opt separate} option.

{phang}
{opt cna} indicates that you want pointwise confidence bands drawn around the
Nelson-Aalen cumulative hazard function.  {opt cna} is not allowed with
{help pweight}ed data.  This option implies the {opt separate} option.

{phang}
{opt cihazard} specifies that you want pointwise confidence bands drawn around
the smoothed hazard function.  This option implies the {opt separate} option.

{dlgtab:Options}

{phang}
{opt level(#)} specifies the confidence level, as a percentage, for the
pointwise confidence interval around the survivor, failure, or cumulative
hazard functions; see {help level}.

{phang}
{opt noshow} prevents {cmd:sts graph} from showing the key st variables.  This
option is rarely used since most people type {cmd:stset, show} or 
{cmd:stset, noshow} to set whether they want to see these variables mentioned
at the top of the output of every st command; see {helpb stset}.

{phang}
{opt lost} specifies that the numbers lost be shown on the plot.
These numbers are shown as small numbers over the flat parts of the function.

{pmore}
If {opt enter} is not specified, the numbers displayed are the number censored
minus the number who enter.  If you do specify {opt enter}, the numbers
displayed are the pure number censored.  The logic underlying this is
described in {bf:[ST] sts}.

{pmore}
{opt lost} may not be used with {opt hazard}.

{phang}
{opt enter} specifies that the number who enter be shown on the
graph, as well as the number lost.  The number who enter are shown as small
numbers beneath the flat parts of the plotted function.

{pmore}
{opt enter} may not be used with {opt hazard}.

{phang}
{opt atrisk} specifies that the numbers at risk at the beginning of
each time interval be shown on the plot.  The numbers at risk are shown as
small numbers beneath the flat parts of the plotted function.

{pmore}
{opt atrisk} may not be used with {opt hazard}.

{phang}
{cmd:censored(single} | {cmd:number} | {cmd:multiple)} specifies that
tick marks be placed on the graph to indicate censored observations.

{pmore}
{cmd:censored(single)} places one tick at each censoring time regardless
of the number of censorings at that time.

{pmore}
{cmd:censored(number)} places one tick at each censoring time and
displays the number of censorings about the tick.

{pmore}
{cmd:censored(multiple)} places multiple ticks for multiple censorings at the
same time.  For instance, if 3 observations are censored at time 5, 3 ticks
are placed at time 5.  {cmd:censored(multiple)} is intended for use when there
are few censored observations; if there are too many censored observations,
the graph can look bad.  In such cases, we recommend that
{cmd:censored(number)} be used.

{pmore}
{opt censored()} may not be used with {opt hazard}.

{phang}
{opt lostopts(marker_label_options)} specifies options that affect how the
numbers lost are rendered; see {it:{help marker_label_options}}.  This option
implies the {opt lost} option.

{phang}
{opt atriskopts(marker_label_options)} specifies options that affect how the
numbers at risk are rendered; see {it:{help marker_label_options}}.  This option
implies the {opt atrisk} option.

{dlgtab:More options}

{phang}
{opt tmax(#)} specifies that the plotted curve be graphed only for t <=
{it:#}.  This option does not affect the calculation of the function, rather
the portion that is displayed.

{phang}
{opt tmin(#)} specifies that the plotted curve be graphed only for t >=
{it:#}.  This option does not affect the calculation of the function, rather
the portion that is displayed.

{phang}
{opt noorigin} requests that the plot of the survival (failure) curve begin at
the first exit time instead of beginning at t=0 (the default).  This option is
ignored when {opt na}, {opt cna}, or {opt hazard} is specified.

{phang}
{cmd:width(}{it:#} [{it:#} ...]{cmd:)} is for use with {opt hazard} and is
used to specify the bandwidth to be used in the kernel smooth used to plot the
estimated hazard function.  If {opt width()} is not specified, a default
bandwidth is used as described in {helpb kdensity}.  If used with {opt by()},
multiple bandwidths may be specified, one for each {opt by()} group.  If there
are more {opt by()} groups than the {it:k} bandwidths specified, the default
bandwidth is used for the {it:k}+1, ... remaining {opt by()} groups.  If any
bandwidth is specified as {cmd:.} (dot), the default bandwidth is used for
that group.

{phang}
{opt kernel(kernel)} is for use with {opt hazard} and is used to specify the
kernel function to be used in calculating the weighted kernel-density estimate
required to produce a smoothed hazard-function estimator.  The default kernel
is Epanechinikov, yet {it:kernel} may be any of the kernels supported by
{cmd:kdensity}; see {helpb kdensity}.

{dlgtab:Plot}

{phang}
{it:cline_options} affect the rendition of the plotted lines; see
{it:{help cline_options}}.  If {opt by()} or {opt strata()} is specified,
stylelists may be used to control the rendition of all lines; see 
{it:{help connect_options}}.

{dlgtab:CI plot}

{phang}
{cmd:ciopts(cline_options)} affect the rendition of the confidence bands; 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}}.  These include options for titling the graph 
(see {it:{help title_options}}), options for saving the graph to disk (see 
{it:{help saving_option}}), and the {opt by()} option (see 
{it:{help by_option}}).


{title:Examples}

    {cmd:. sts}
    {cmd:. sts,na}
    {cmd:. sts graph}
{phang}{cmd:. sts graph, by(posttran)}{p_end}
{phang}{cmd:. sts graph, na  by(posttran)}

    {cmd:. sts list}
{phang}{cmd:. sts list, na}{p_end}
{phang}{cmd:. sts list, by(posttran)}{p_end}
{phang}{cmd:. sts list, by(posttran) compare}{p_end}
{phang}{cmd:. sts list, by(posttran) compare at(0 100 to 1700)}{p_end}
{phang}{cmd:. sts list, na by(posttran) compare at(0 100 to 1700)}

{phang}{cmd:. sts test posttran}{p_end}
{phang}{cmd:. sts test posttran, wilcoxon}

{phang}{cmd:. gen age50 = age - 50}{p_end}
{phang}{cmd:. sts graph, by(drug) adjustfor(age50)}{p_end}
{phang}{cmd:. sts graph, strata(drug) adjustfor(age50)}{p_end}
{phang}{cmd:. sts list, by(drug) adjustfor(age50) compare}{p_end}
{phang}{cmd:. sts list, strata(drug) adjustfor(age50) compare}


{title:Also see}

{psee}
Manual:  {bf:[ST] sts graph}

{psee}
Online:  {help st}, {help sts}, {helpb sts generate},
{helpb sts list}, {helpb sts test}, {helpb stset}; {helpb kdensity}
{p_end}

⌨️ 快捷键说明

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