Existing estimation commands stcox and
streg may now be used with the
svy: prefix and so can fit models for complex survey data; see [ST]
stcox and [ST]
streg.
New command stpower provides sample-size and
power calculations for survival studies that use Cox proportional hazards
regressions, log-rank tests for two groups, or differences in
exponentially distributed hazards or log hazards.
stpower cox estimates required sample size
(given power) or power (given sample size) or the minimal detectable
coefficient (given power and sample size) for models with multiple
covariates. The command provides options to account for possible
correlation between the covariate of interest and other predictors and
for withdrawal of subjects from the study. See [ST]
stpower cox.
stpower logrank estimates required sample
size (given power) or power (given sample size) or the minimal
detectable hazard ratio (given power and sample size) for studies
comparing survivor functions of two groups by using the log-rank
test. Both the Freedman (1982) and the Schoenfeld (1981) methods are
provided. The command allows for unequal allocation of subjects
between the groups and possible withdrawal of subjects. Estimates can
be adjusted for uniform accrual. See [ST]
stpower logrank.
stpower exponential estimates sample size
(given power) or power (given sample size) of tests of the difference
between hazards or log hazards of two groups under the assumption of
exponential survivor functions (also known as the exponential test).
Both the Lachin–Foulkes and Rubinstein–Gail–Santner
methods are provided. Unequal group allocation, uniform or truncated
exponential accrual, and different exponential losses due to follow-up
in each group are allowed. See [ST]
stpower exponential.
The stpower commands allow automated production
of customizable tables and have options to assist with creating graphs of
power curves. See [ST]
stpower.
Concerning existing command sts graph,
New option risktable() places a
subjects-at-risk table underneath and aligned to the survival or
hazard plot.
New option ci replaces old options
gwood, cna, and
cihazard. sts graph
will choose the appropriate confidence interval on the basis of the
function being graphed.
Confidence intervals are now graphed using shaded areas, and new
options plotopts() and
ciopts() allow you to control how plots and confidence
intervals look.
New option censopts() controls the
appearance of ticks and markers produced by existing option
censored().
Boundary computations for smoothing hazards have been improved. New
option noboundary specifies that no boundary
correction be done.
The lower bound of the range to plot the hazard function now extends
to zero.
Option na has been renamed
cumhaz. na may
still be used.
See [ST] sts
graph. Setting
version to less than 10 restores previous behavior.
For sts list,
option na has been renamed
cumhaz.
na may be used as a synonym for
cumhaz.
See [ST]
sts list.
Improvements to
stcurve analogous to those of
sts graph
have been made.
Boundary computations for smoothing hazards have been improved.
New option noboundary specifies that no
boundary correction be done.
The lower bound of the range to plot the hazard function now
extends to zero.
All st estimation commands accept option
vce(vcetype).
As mentioned in More new statistical features,
vce(robust) and
vce(cluster varname)
are the right ways to specify the old robust and
cluster() options, and vce()
now allows other VCE calculations as well.
Existing command predict after
stcox has a new option,
scores, that allows generating variables with the
partial coefficient score residuals; see [ST]
stcox postestimation.
Existing command ltable has new options
byopts(),
plot#opts(), and
ci#opts() that allow for
more customization of the graph. New option ci
adds confidence intervals to the graph. See [ST]
ltable.
Existing command stphplot has a new option
plot#opts() that
allows for most customizations of the graph. See [ST]
stcox diagnostics.
Existing command stcoxkm has new options
byopts(),
obsopts(),
obs#opts(),
predopts(), and
pred#opts()
that allow for most customizations of the graph. See [ST]
stcox diagnostics.
Existing command cc has new option
tarone that produces Tarone’s (1985)
adjustment of the Breslow–Day test for homogeneity test of odds
ratios. See [ST]
epitab.
Existing command stdes has been renamed to
stdescribe. stdes
continues to work. See [ST]
stdescribe.
We use cookies to ensure that we give you the best experience on our website—to enhance site navigation, to analyze usage, and to assist in our marketing efforts. By continuing to use our site, you consent to the storing of cookies on your device and agree to delivery of content, including web fonts and JavaScript, from third party web services.
Cookie Settings
Privacy policy
Last updated: 16 November 2022
StataCorp LLC (StataCorp) strives to provide our users with exceptional products and services. To do so, we must collect personal information from you. This information is necessary to conduct business with our existing and potential customers. We collect and use this information only where we may legally do so. This policy explains what personal information we collect, how we use it, and what rights you have to that information.
These cookies are essential for our website to function and do not store any personally identifiable information. These cookies cannot be disabled.
Advertising and performance cookies
This website uses cookies to provide you with a better user experience. A cookie is a small piece of data our website stores on a site visitor's hard drive and accesses each time you visit so we can improve your access to our site, better understand how you use our site, and serve you content that may be of interest to you. For instance, we store a cookie when you log in to our shopping cart so that we can maintain your shopping cart should you not complete checkout. These cookies do not directly store your personal information, but they do support the ability to uniquely identify your internet browser and device.
Please note: Clearing your browser cookies at any time will undo preferences saved here. The option selected here will apply only to the device you are currently using.