Internet Guide to Stata |
Print article |
This is what sometimes is termed a stub; in other words, it provides only some very basic information needed for estimating elementary models.
Estimation of a Cox model requires the data to be stset. Then,
stcox status gender i.group
will estimate a Cox model with "status", "gender" and "group" (treated as a factor variable) as covariates.
nohr | can be used to obtain regression coefficients instead of hazard ratios. |
estat ic | will display the AIC and BIC |
© W. Ludwig-Mayerhofer, Stata Guide | Last update: 25 Jun 2013