2023 Stata Conference • Stanford, CA • 20–21 July • Register today ->
Stata 18 offers several new features in survival analysis. The new commands lasso cox and elasticnet cox can be used to select covariates using lasso or elastic net and fit Cox models to survival-time data. In addition to standard lasso and elastic-net postestimation tools, you can also use stcurve to plot the penalized survivor, failure, hazard, or cumulative hazard function.
Stata 17 introduced stintcox for fitting interval-censored Cox models using novel genuinely semiparametric estimation methods. Stata 18 adds support for time-varying covariates, commonly encountered in practice, to stintcox. In addition to estimation, postestimation features such as prediction and plots of survivor and other functions incorporate time-varying covariates too!
Last but not least, you can now check model fit of your survival models more easily by using the new estat gofplot command. The supported features include right-censored and interval-censored data, parametric and semiparametric models, by-group and stratified estimation, and more.
Read more about these features and see them in action:
View all the new features in Stata 18 ->
Classroom & web training
Teaching with Stata
Statalist: The Stata Forum
© Copyright 1996–2023 StataCorp LLC. All rights reserved.
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.
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.