📄 sts.hlp
字号:
{smcl}
{* 15mar2005}{...}
{cmd:help sts} {right:dialogs: {bf:{dialog stsgenerate:generate}} {bf:{dialog stsgraph:graph}} {bf:{dialog stslist:list}} {bf:{dialog ststest:test}}}
{hline}
{title:Title}
{p2colset 5 17 19 2}{...}
{p2col :{hi:[ST] sts} {hline 2}}Generate, graph, list, and test the survivor and cumulative hazard functions{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 21 2}
{cmd:sts} [{opt g:raph}] {ifin} [{cmd:,} ...]
{p 8 21 2}
{cmd:sts} {opt l:ist} {ifin} [{cmd:,} ...]
{p 8 21 2}
{cmd:sts} {opt t:est} {varlist} {ifin} [{cmd:,} ...]
{p 8 21 2}
{cmd:sts} {opt gen:erate} {newvar} {cmd:=} ... {ifin} [{cmd:,} ...]
{pstd}
You must {cmd:stset} your data before using {cmd:sts}; see {helpb stset}.{p_end}
{pstd}
Note that {opt fweight}s, {opt iweight}s, and {opt pweight}s may be specified
with {cmd:stset}; see {helpb stset}
{pstd}
See {helpb sts graph}, {helpb sts list}, {helpb sts test}, and {helpb sts generate} for details of syntax.
{title:Description}
{pstd}
{cmd:sts} reports and creates variables containing the estimated survivor and
related functions, such as the Nelson-Aalen cumulative hazard function. In
the case of the survivor function, {cmd:sts} tests and produces Kaplan-Meier
estimates or, via Cox regression, adjusted estimates.
{pmore}
{cmd:sts graph} is equivalent to typing {cmd:sts} by itself{hline 2}it graphs the survivor function.
{pmore}
{cmd:sts list} lists the estimated survivor and related functions.
{pmore}
{cmd:sts test} tests the equality of the survivor function across groups.
{pmore}
{cmd:sts generate} creates new variables containing the estimated survivor
function, the Nelson-Aalen cumulative hazard function, or related functions.
{pmore}
{cmd:sts} can be used with single- or multiple-record or single- or
multiple-failure st data.
{title:Examples:}
{pmore}Graph the Kaplan-Meier survivor function{p_end}
{p 12 20 2}{cmd:. sts graph}{p_end}
{p 12 20 2}{cmd:. sts graph, by(drug)}
{pmore}Graph the Nelson-Aalen cumulative hazard function{p_end}
{p 12 20 2}{cmd:. sts graph, na}{p_end}
{p 12 20 2}{cmd:. sts graph, na by(drug)}
{pmore}List the Kaplan-Meier survivor function{p_end}
{p 12 20 2}{cmd:. sts list}{p_end}
{p 12 20 2}{cmd:. sts list, by(drug) compare}
{pmore}List the Nelson-Aalen cumulative hazard function{p_end}
{p 12 20 2}{cmd:. sts list, na}{p_end}
{p 12 20 2}{cmd:. sts list, na by(drug) compare}
{pmore}Generate variable containing Kaplan-Meier survivor function{p_end}
{p 12 20 2}{cmd:. sts gen surv = s}{p_end}
{p 12 20 2}{cmd:. sts gen surv = s, by(drug)}
{pmore}Generate variable containing Nelson-Aalen cumulative hazard function{p_end}
{p 12 20 2}{cmd:. sts gen haz = na}{p_end}
{p 12 20 2}{cmd:. sts gen haz = na, by(drug)}
{pmore}Test equality of survivor functions{p_end}
{p 12 20 2}{cmd:. sts test drug}{p_end}
{p 12 20 2}{cmd:. sts test drug, strata(agecat)}
{title:Also see}
{psee}
Manual: {bf:[ST] sts}
{psee}
Online: {help st}, {helpb stci}, {helpb stcox}, {helpb sts generate}, {helpb sts graph}, {helpb sts list}, {helpb sts test}, {helpb stset}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -