# Proportional hazards model

__: Class of statistical survival models__

**Short description****Proportional hazards models** are a class of survival models in statistics. Survival models relate the time that passes, before some event occurs, to one or more covariates that may be associated with that quantity of time. In a proportional hazards model, the unique effect of a unit increase in a covariate is multiplicative with respect to the hazard rate. For example, taking a drug may halve one's hazard rate for a stroke occurring, or, changing the material from which a manufactured component is constructed may double its hazard rate for failure. Other types of survival models such as accelerated failure time models do not exhibit proportional hazards. The accelerated failure time model describes a situation where the biological or mechanical life history of an event is accelerated (or decelerated).

## Background

Survival models can be viewed as consisting of two parts: the underlying baseline hazard function, often denoted [math]\displaystyle{ \lambda_0(t) }[/math], describing how the risk of event per time unit changes over time at *baseline* levels of covariates; and the effect parameters, describing how the hazard varies in response to explanatory covariates. A typical medical example would include covariates such as treatment assignment, as well as patient characteristics such as age at start of study, gender, and the presence of other diseases at start of study, in order to reduce variability and/or control for confounding.

The *proportional hazards condition*^{[1]} states that covariates are multiplicatively related to the hazard. In the simplest case of stationary coefficients, for example, a treatment with a drug may, say, halve a subject's hazard at any given time [math]\displaystyle{ t }[/math], while the baseline hazard may vary. Note however, that this does not double the lifetime of the subject; the precise effect of the covariates on the lifetime depends on the type of [math]\displaystyle{ \lambda_0(t) }[/math]. The covariate is not restricted to binary predictors; in the case of a continuous covariate [math]\displaystyle{ x }[/math], it is typically assumed that the hazard responds exponentially; each unit increase in [math]\displaystyle{ x }[/math] results in proportional scaling of the hazard.

## The Cox model

### Introduction

Sir David Cox observed that if the proportional hazards assumption holds (or, is assumed to hold) then it is possible to estimate the effect parameter(s), denoted [math]\displaystyle{ \beta_i }[/math] below, without any consideration of the full hazard function. This approach to survival data is called application of the * Cox proportional hazards model*,

^{[2]}sometimes abbreviated to

*or to*

**Cox model***proportional hazards model*.

^{[3]}However, Cox also noted that biological interpretation of the proportional hazards assumption can be quite tricky.

^{[4]}

^{[5]}

Let *X*_{i} = (*X*_{i1}, … , *X*_{ip}) be the realized values of the *p* covariates for subject *i*. The hazard function for the Cox proportional hazards model has the form

- [math]\displaystyle{ \begin{align} \lambda(t|X_i) &= \lambda_0(t)\exp(\beta_1X_{i1} + \cdots + \beta_pX_{ip}) \\ &= \lambda_0(t)\exp(X_i \cdot \beta) \end{align} }[/math]

This expression gives the hazard function at time *t* for subject *i* with covariate vector (explanatory variables) *X*_{i}. Note that between subjects, the baseline hazard [math]\displaystyle{ \lambda_0(t) }[/math] is identical (has no dependency on *i*). The only difference between subjects' hazards comes from the baseline scaling factor [math]\displaystyle{ \exp(X_i \cdot \beta) }[/math].

### Why it is called "proportional"

To start, suppose we only have a single covariate, [math]\displaystyle{ x }[/math], and therefore a single coefficient, [math]\displaystyle{ \beta_1 }[/math]. Consider the effect of increasing [math]\displaystyle{ x }[/math] by 1:

- [math]\displaystyle{ \begin{align} \lambda(t|x+1) &= \lambda_0(t)\exp(\beta_1(x+1)) \\ &= \lambda_0(t)\exp(\beta_1x+\beta_1)\\ &= \Bigl( \lambda_0(t)\exp(\beta_1x) \Bigr) \exp(\beta_1) \\ &= \lambda(t|x) \exp(\beta_1) \end{align} }[/math]

We can see that increasing a covariate by 1 scales the original hazard by the constant [math]\displaystyle{ \exp(\beta_1) }[/math]. Rearranging things slightly, we see that:

- [math]\displaystyle{ \frac{\lambda(t|x+1)}{\lambda(t|x)} = \exp(\beta_1) }[/math]

The right-hand-side is constant over time (no term has a [math]\displaystyle{ t }[/math] in it). This relationship, [math]\displaystyle{ x/y = \text{constant} }[/math], is called a proportional relationship.

More generally, consider two subjects, *i* and *j*, with covariates [math]\displaystyle{ X_i }[/math] and [math]\displaystyle{ X_j }[/math] respectively. Consider the ratio of their hazards:

- [math]\displaystyle{ \begin{align} \frac{\lambda(t|X_i)}{\lambda(t|X_j)}&=\frac{\lambda_0(t)\exp(X_i \cdot \beta)}{\lambda_0(t)\exp(X_j \cdot \beta)}\\ &=\frac{\cancel{\lambda_0(t)}\exp(X_i \cdot \beta)}{\cancel{\lambda_0(t)}\exp(X_j \cdot \beta)}\\ &=\exp((X_i - X_j) \cdot \beta) \end{align} }[/math]

The right-hand-side isn't dependent on time, as the only time-dependent factor, [math]\displaystyle{ \lambda_0(t) }[/math], was cancelled out. Thus the ratio of hazards of two subjects is a constant, i.e. the hazards are proportional.

### Absence of an intercept term

Often there is an intercept term (also called a constant term or bias term) used in regression models. The Cox model lacks one because the baseline hazard, [math]\displaystyle{ \lambda_0(t) }[/math], takes the place of it. Let's see what would happen if we did include an intercept term anyways, denoted [math]\displaystyle{ \beta_0 }[/math]:

- [math]\displaystyle{ \begin{align} \lambda(t|X_i) &= \lambda_0(t)\exp(\beta_1X_{i1} + \cdots + \beta_pX_{ip} + \beta_0)\\ &= \lambda_0(t)\exp(X_i \cdot \beta)\exp(\beta_0) \\ &= \left ( \exp(\beta_0)\lambda_0(t)\right ) \exp(X_i \cdot \beta) \\ &= \lambda^*_0(t)\exp(X_i \cdot \beta) \end{align} }[/math]

where we've redefined [math]\displaystyle{ \exp(\beta_0)\lambda_0(t) }[/math] to be a new baseline hazard, [math]\displaystyle{ \lambda^*_0(t) }[/math]. Thus, the baseline hazard incorporates *all* parts of the hazard that are not dependent on the subjects' covariates, which includes any intercept term (which is constant for all subjects, by definition).

### Likelihood for unique times

The Cox partial likelihood, shown below, is obtained by using Breslow's estimate of the baseline hazard function, plugging it into the full likelihood and then observing that the result is a product of two factors. The first factor is the partial likelihood shown below, in which the baseline hazard has "canceled out". The second factor is free of the regression coefficients and depends on the data only through the censoring pattern. The effect of covariates estimated by any proportional hazards model can thus be reported as hazard ratios.

The likelihood of the event to be observed occurring for subject *i* at time *Y*_{i} can be written as:

- [math]\displaystyle{ L_i(\beta) =\frac{\lambda(Y_i\mid X_i)}{\sum_{j:Y_j\ge Y_i}\lambda(Y_i\mid X_j)} =\frac{\lambda_0(Y_i)\theta_i}{\sum_{j:Y_j\ge Y_i}\lambda_0(Y_i)\theta_j} =\frac{\theta_i}{\sum_{j:Y_j\ge Y_i}\theta_j}, }[/math]

where *θ*_{j} = exp(*X*_{j} ⋅ *β*) and the summation is over the set of subjects *j* where the event has not occurred before time *Y*_{i} (including subject *i* itself). Obviously 0 < *L*_{i}(β) ≤ 1. This is a partial likelihood: the effect of the covariates can be estimated without the need to model the change of the hazard over time.

Treating the subjects as if they were statistically independent of each other, the joint probability of all realized events^{[6]} is the following partial likelihood, where the occurrence of the event is indicated by *C*_{i} = 1:

- [math]\displaystyle{ L(\beta) = \prod_{i:C_i=1} L_i(\beta) . }[/math]

The corresponding log partial likelihood is

- [math]\displaystyle{ \ell(\beta) = \sum_{i:C_i=1} \left(X_i \cdot \beta - \log \sum_{j:Y_j\ge Y_i}\theta_j\right). }[/math]

This function can be maximized over *β* to produce maximum partial likelihood estimates of the model parameters.

The partial score function is

- [math]\displaystyle{ \ell^\prime(\beta) = \sum_{i:C_i=1} \left(X_i - \frac{\sum_{j:Y_j\ge Y_i}\theta_jX_j}{\sum_{j:Y_j\ge Y_i}\theta_j}\right), }[/math]

and the Hessian matrix of the partial log likelihood is

- [math]\displaystyle{ \ell^{\prime\prime}(\beta) = -\sum_{i:C_i=1} \left(\frac{\sum_{j:Y_j\ge Y_i}\theta_jX_jX_j^\prime}{\sum_{j:Y_j\ge Y_i}\theta_j} - \frac{\left[\sum_{j:Y_j\ge Y_i}\theta_jX_j\right] \left[\sum_{j:Y_j\ge Y_i}\theta_jX_j^\prime\right]}{\left[\sum_{j:Y_j\ge Y_i}\theta_j\right]^2}\right). }[/math]

Using this score function and Hessian matrix, the partial likelihood can be maximized using the Newton-Raphson algorithm. The inverse of the Hessian matrix, evaluated at the estimate of *β*, can be used as an approximate variance-covariance matrix for the estimate, and used to produce approximate standard errors for the regression coefficients.

### Likelihood when there exist tied times

Several approaches have been proposed to handle situations in which there are ties in the time data. *Breslow's method* describes the approach in which the procedure described above is used unmodified, even when ties are present. An alternative approach that is considered to give better results is *Efron's method*.^{[7]} Let *t*_{j} denote the unique times, let *H*_{j} denote the set of indices *i* such that *Y*_{i} = *t*_{j} and *C*_{i} = 1, and let *m*_{j} = |*H*_{j}|. Efron's approach maximizes the following partial likelihood.

- [math]\displaystyle{ L(\beta) = \prod_j \frac{\prod_{i\in H_j}\theta_i}{\prod_{\ell=0}^{m_j-1} \left[\sum_{i:Y_i\ge t_j}\theta_i - \frac{\ell}{m_j} \sum_{i\in H_j} \theta_i\right] }. }[/math]

The corresponding log partial likelihood is

- [math]\displaystyle{ \ell(\beta) = \sum_j \left(\sum_{i\in H_j} X_i \cdot \beta -\sum_{\ell=0}^{m_j-1}\log\left(\sum_{i:Y_i\ge t_j}\theta_i - \frac{\ell}{m_j} \sum_{i\in H_j}\theta_i\right)\right), }[/math]

the score function is

- [math]\displaystyle{ \ell^\prime(\beta) = \sum_j \left(\sum_{i\in H_j} X_i -\sum_{\ell=0}^{m_j-1}\frac{\sum_{i:Y_i\ge t_j}\theta_iX_i - \frac{\ell}{m_j}\sum_{i\in H_j}\theta_iX_i}{\sum_{i:Y_i\ge t_j}\theta_i - \frac{\ell}{m_j}\sum_{i\in H_j}\theta_i}\right), }[/math]

and the Hessian matrix is

- [math]\displaystyle{ \ell^{\prime\prime}(\beta) = -\sum_j \sum_{\ell=0}^{m_j-1} \left(\frac{\sum_{i:Y_i\ge t_j}\theta_iX_iX_i^\prime - \frac{\ell}{m_j}\sum_{i\in H_j}\theta_iX_iX_i^\prime}{\phi_{j,\ell,m_j}} - \frac{Z_{j,\ell,m_j} Z_{j,\ell,m_j}^\prime}{\phi_{j,\ell,m_j}^2}\right), }[/math]

where

- [math]\displaystyle{ \phi_{j,\ell,m_j} = \sum_{i:Y_i\ge t_j}\theta_i - \frac{\ell}{m_j}\sum_{i\in H_j}\theta_i }[/math]
- [math]\displaystyle{ Z_{j,\ell,m_j} = \sum_{i:Y_i\ge t_j}\theta_iX_i - \frac{\ell}{m_j}\sum_{i\in H_j}\theta_iX_i. }[/math]

Note that when *H*_{j} is empty (all observations with time *t*_{j} are censored), the summands in these expressions are treated as zero.

### Examples

Below are some worked examples of the Cox model in practice.

#### A single binary covariate

Suppose the endpoint we are interested in is patient survival during a 5-year observation period after a surgery. Patients can die within the 5-year period, and we record when they died, or patients can live past 5 years, and we only record that they lived past 5 years. The surgery was performed at one of two hospitals, *A* or *B*, and we would like to know if the hospital location is associated with 5-year survival. Specifically, we would like to know the *relative* increase (or decrease) in hazard from a surgery performed at hospital A compared to hospital B. Provided is some (fake) data, where each row represents a patient: *T* is how long the patient was observed for before death or 5 years (measured in months), and *C* denotes if the patient died in the 5-year period. We have encoded the hospital as a binary variable denoted *X*: 1 if from hospital *A*, 0 from hospital *B*.

hospital | X | T | C |
---|---|---|---|

B | 0 | 60 | False |

B | 0 | 32 | True |

B | 0 | 60 | False |

B | 0 | 60 | False |

B | 0 | 60 | False |

A | 1 | 4 | True |

A | 1 | 18 | True |

A | 1 | 60 | False |

A | 1 | 9 | True |

A | 1 | 31 | True |

A | 1 | 53 | True |

A | 1 | 17 | True |

Our single-covariate Cox proportional model looks like the following, with [math]\displaystyle{ \beta_1 }[/math] representing the hospital's effect, and *i* indexing each patient:

- [math]\displaystyle{ \overbrace{\lambda(t|X_{i})}^{\text{hazard for i}} = \underbrace{\lambda_0(t)}_{\text{baseline} \atop \text{hazard} }\cdot\overbrace{\exp(\beta_1 X_{i})}^{\text{scaling factor for i}} }[/math]

Using statistical software, we can estimate [math]\displaystyle{ \beta_1 }[/math] to be 2.12. The hazard ratio is the *exponential* of this value, [math]\displaystyle{ \exp(\beta_1) = \exp(2.12) }[/math]. To see why, consider the ratio of hazards, specifically:

- [math]\displaystyle{ \frac{\lambda(t|X=1)}{\lambda(t|X=0)} = \frac{\cancel{\lambda_0(t)}\exp(\beta_1 \cdot 1)}{\cancel{\lambda_0(t)}\exp(\beta_1 \cdot 0)} = \exp(\beta_1) }[/math]

Thus, the hazard ratio of hospital A to hospital B is [math]\displaystyle{ \exp(2.12) = 8.32 }[/math]. Putting aside statistical significance for a moment, we can make a statement saying that patients in hospital A are associated with a 8.3x higher risk of death occurring in any short period of time compared to hospital B.

There are important caveats to mention about the interpretation:

- a 8.3x higher risk of death does not mean that 8.3x more patients will die in hospital B: survival analysis examines how quickly events occur, not simply whether they occur.
- More specifically, "risk of death" is a measure of a rate. A rate has units, like meters per second. However, a
*relative*rate does not: a bicycle can go two times faster than another bicycle (the reference bicycle), without specifying any units. Likewise, the risk of death (rate of death) in hospital*A*is 8.3 times higher (faster) than the risk of death in hospital*B*(the reference group). - the inverse quantity, [math]\displaystyle{ 1/8.32 = \frac{1}{\exp(2.12)} = \exp(-2.12) = 0.12 }[/math] is the hazard ratio of hospital
*B*relative to hospital*A*. - We haven't made any inferences about
*probabilities*of survival between the hospitals. This is because we would need an estimate of the baseline hazard rate, [math]\displaystyle{ \lambda_0(t) }[/math], as well as our [math]\displaystyle{ \beta_1 }[/math] estimate. However, standard estimation of the Cox proportional hazard model does not directly estimate the baseline hazard rate. - Because we have ignored the only time varying component of the model, the baseline hazard rate, our estimate is timescale-invariant. For example, if we had measured time in years instead of months, we would get the same estimate.
- It is tempting to say that the hospital
*caused*the difference in hazards between the two groups, but since our study is not causal (that is, we do not know how the data was generated), we stick with terminology like "associated".

#### A single continuous covariate

To demonstrate a less traditional use case of survival analysis, the next example will be an economics question: what is the relationship between a company's price-to-earnings ratio (P/E) on their first IPO anniversary and their future survival? More specifically, if we consider a company's "birth event" to be their first IPO anniversary, and any bankruptcy, sale, going private, etc. as a "death" event the company, we'd like to know the influence of the companies' P/E ratio at their "birth" (first IPO anniversary) on their survival.

Provided is a (fake) dataset with survival data from 12 companies: *T* represents the number of days between first IPO anniversary and death (or an end date of 2022-01-01, if did not die). *C* represents if the company died before 2022-01-01 or not. P/E represents the company's price-to-earnings ratio at its 1st IPO anniversary.

Co. | 1 year IPO date | Death date* | C | T | P/E |
---|---|---|---|---|---|

0 | 2000-11-05 | 2011-01-22 | True | 3730 | 9.7 |

1 | 2000-12-01 | 2003-03-30 | True | 849 | 12.0 |

2 | 2011-01-05 | 2012-03-30 | True | 450 | 3.0 |

3 | 2010-05-29 | 2011-02-22 | True | 269 | 5.3 |

4 | 2005-06-23 | 2022-01-01 | False | 6036 | 10.8 |

5 | 2000-06-10 | 2002-07-24 | True | 774 | 6.3 |

6 | 2011-07-11 | 2014-05-01 | True | 1025 | 11.6 |

7 | 2007-09-27 | 2022-01-01 | False | 5210 | 10.3 |

8 | 2006-07-30 | 2010-06-03 | True | 1404 | 8.0 |

9 | 2000-07-13 | 2001-07-19 | True | 371 | 4.0 |

10 | 2013-06-10 | 2018-10-10 | True | 1948 | 5.9 |

11 | 2011-07-16 | 2014-08-15 | True | 1126 | 8.3 |

Unlike the previous example where there was a binary variable, this dataset has a continuous variable, P/E; however, the model looks similar:

- [math]\displaystyle{ \lambda(t|P_{i}) = \lambda_0(t)\cdot\exp(\beta_1 P_{i}) }[/math]

where [math]\displaystyle{ P_i }[/math] represents a company's P/E ratio. Running this dataset through a Cox model produces an *estimate* of the value of the unknown [math]\displaystyle{ \beta_1 }[/math], which is -0.34. Therefore, an estimate of the entire hazard is:

- [math]\displaystyle{ \lambda(t|P_{i}) = \lambda_0(t)\cdot\exp(-0.34 P_{i}) }[/math]

Since the baseline hazard, [math]\displaystyle{ \lambda_0(t) }[/math], was not estimated, the entire hazard is not able to be calculated. However, consider the ratio of the companies *i* and *j'*s hazards:

- [math]\displaystyle{ \begin{align} \frac{\lambda(t|P_{i})}{\lambda(t|P_{j})} &= \frac{ \cancel{\lambda_0(t)}\cdot\exp(-0.34 P_{i})}{\cancel{\lambda_0(t)}\cdot\exp(-0.34 P_{j})} \\ &= \exp(-0.34 (P_{i} - P_{j})) \end{align} }[/math]

All terms on the right are known, so calculating the ratio of hazards between companies is possible. Since there is no time-dependent term on the right (all terms are constant), the hazards are *proportional* to each other. For example, the hazard ratio of company 5 to company 2 is [math]\displaystyle{ \exp(-0.34 (6.3 - 3.0)) = 0.33 }[/math]. This means that, within the interval of study, company 5's risk of "death" is 0.33 ≈ 1/3 as large as company 2's risk of death.

There are important caveats to mention about the interpretation:

- The
*hazard ratio*is the quantity [math]\displaystyle{ \exp(\beta_1) }[/math], which is [math]\displaystyle{ \exp(-0.34) = 0.71 }[/math] in the above example. From the last calculation above, an interpretation of this is as the ratio of hazards between two "subjects" that have their variables differ by one unit: if [math]\displaystyle{ P_{i} = P_{j} + 1 }[/math], then [math]\displaystyle{ \exp(\beta_1 (P_{i} - P_{j}) = \exp(\beta_1 (1)) }[/math]. The choice of "differ by one unit" is convenience, as it communicates precisely the value of [math]\displaystyle{ \beta_1 }[/math]. - The baseline hazard can be represented when the scaling factor is 1, i.e. [math]\displaystyle{ P=0 }[/math].

[math]\displaystyle{ \lambda(t|P_{i}=0) = \lambda_0(t)\cdot\exp(-0.34 \cdot 0) = \lambda_0(t) }[/math]

Can we interpret the baseline hazard as the hazard of a "baseline" company whose P/E happens to be 0? This interpretation of the baseline hazard as "hazard of a baseline subject" is imperfect, as it is possible that the covariate being 0 is impossible. In this application, a P/E of 0 is meaningless (it means the company's stock price is 0, i.e., they are "dead"). A more appropriate interpretation would be "the hazard when all variables are nil".

- It is tempting to want to understand and interpret a value like [math]\displaystyle{ \exp(\beta_1 P_{i}) }[/math] to represent the hazard of a company. However, consider what this is actually representing: [math]\displaystyle{ \exp(\beta_1 P_{i}) = \exp(\beta_1 (P_{i}-0))= \frac{\exp(\beta_1 P_{i})}{\exp(\beta_1 0)} = \frac{\lambda(t|P_{i})}{\lambda(t|0)} }[/math]. There is implicitly a ratio of hazards here, comparing company
*i'*s hazard to an imaginary baseline company with 0 P/E. However, as explained above, a P/E of 0 is impossible in this application, so [math]\displaystyle{ \exp(\beta_1 P_{i}) }[/math] is meaningless in this example. Ratios between plausible hazards are meaningful, however.

## Time-varying predictors and coefficients

Extensions to time dependent variables, time dependent strata, and multiple events per subject, can be incorporated by the counting process formulation of Andersen and Gill.Cite error: Closing `</ref>`

missing for `<ref>`

tag^{[8]}

In this context, it could also be mentioned that it is theoretically possible to specify the effect of covariates by using additive hazards,^{[9]} i.e. specifying

- [math]\displaystyle{ \lambda(t|X_i) = \lambda_0(t) + \beta_1X_{i1} + \cdots + \beta_pX_{ip} = \lambda_0(t) + X_i \cdot \beta. }[/math]

If such additive hazards models are used in situations where (log-)likelihood maximization is the objective, care must be taken to restrict [math]\displaystyle{ \lambda(t\mid X_i) }[/math] to non-negative values. Perhaps as a result of this complication, such models are seldom seen. If the objective is instead least squares the non-negativity restriction is not strictly required.

## Specifying the baseline hazard function

The Cox model may be specialized if a reason exists to assume that the baseline hazard follows a particular form. In this case, the baseline hazard [math]\displaystyle{ \lambda_0(t) }[/math] is replaced by a given function. For example, assuming the hazard function to be the *Weibull* hazard function gives the *Weibull proportional hazards model*.

Incidentally, using the Weibull baseline hazard is the only circumstance under which the model satisfies both the proportional hazards, and accelerated failure time models.

The generic term *parametric proportional hazards models* can be used to describe proportional hazards models in which the hazard function is specified. The Cox proportional hazards model is sometimes called a *semiparametric model* by contrast.

Some authors use the term *Cox proportional hazards model* even when specifying the underlying hazard function,^{[10]} to acknowledge the debt of the entire field to David Cox.

The term *Cox regression model* (omitting *proportional hazards*) is sometimes used to describe the extension of the Cox model to include time-dependent factors. However, this usage is potentially ambiguous since the Cox proportional hazards model can itself be described as a regression model.

## Relationship to Poisson models

There is a relationship between proportional hazards models and Poisson regression models which is sometimes used to fit approximate proportional hazards models in software for Poisson regression. The usual reason for doing this is that calculation is much quicker. This was more important in the days of slower computers but can still be useful for particularly large data sets or complex problems. Laird and Olivier (1981)^{[11]} provide the mathematical details. They note, "we do not assume [the Poisson model] is true, but simply use it as a device for deriving the likelihood." McCullagh and Nelder's^{[12]} book on generalized linear models has a chapter on converting proportional hazards models to generalized linear models.

## Under high-dimensional setup

In high-dimension, when number of covariates p is large compared to the sample size n, the LASSO method is one of the classical model-selection strategies. Tibshirani (1997) has proposed a Lasso procedure for the proportional hazard regression parameter.^{[13]} The Lasso estimator of the regression parameter β is defined as the minimizer of the opposite of the Cox partial log-likelihood under an L^{1}-norm type constraint.

- [math]\displaystyle{ \ell(\beta) = \sum_j \left(\sum_{i\in H_j} X_i \cdot \beta -\sum_{\ell=0}^{m_j-1}\log\left(\sum_{i:Y_i\ge t_j}\theta_i - \frac{\ell}{m_j}\sum_{i\in H_j}\theta_i\right)\right) + \lambda \|\beta\|_1 , }[/math]

There has been theoretical progress on this topic recently.^{[14]}^{[15]}^{[16]}^{[17]}

## Software implementations

**Mathematica**:`CoxModelFit`

function.^{[18]}**R**:`coxph()`

function, located in the**survival**package.**SAS**:`phreg`

procedure**Stata**:`stcox`

command**Python**:`CoxPHFitter`

located in the**lifelines**library.`phreg`

in the statsmodels library.**SPSS**: Available under**Cox Regression**.**MATLAB**:`fitcox`

or`coxphfit`

function**Julia**: Available in the**Survival.jl**library.**JMP**: Available in**Fit Proportional Hazards**platform.**Prism**: Available in Survival Analyses and Multiple Variable Analyses

## See also

## Notes

- ↑ "Analysis of Survival Data under the Proportional Hazards Model".
*International Statistical Review / Revue Internationale de Statistique***43**(1): 45–57. 1975. doi:10.2307/1402659. - ↑ Cox, David R (1972). "Regression Models and Life-Tables".
*Journal of the Royal Statistical Society, Series B***34**(2): 187–220. - ↑ Kalbfleisch, John D.; Schaubel, Douglas E. (10 March 2023). "Fifty Years of the Cox Model" (in en).
*Annual Review of Statistics and Its Application***10**(1): 1–23. doi:10.1146/annurev-statistics-033021-014043. ISSN 2326-8298. Bibcode: 2023AnRSA..10....1K. - ↑ Reid, N. (1994). "A Conversation with Sir David Cox".
*Statistical Science***9**(3): 439–455. doi:10.1214/ss/1177010394. - ↑ "Some remarks on the analysis of survival data". the First Seattle Symposium of Biostatistics: Survival Analysis. 1997.
- ↑ "Each failure contributes to the likelihood function", Cox (1972), page 191.
- ↑ Efron, Bradley (1974). "The Efficiency of Cox's Likelihood Function for Censored Data".
*Journal of the American Statistical Association***72**(359): 557–565. doi:10.1080/01621459.1977.10480613. - ↑ "timereg: Flexible Regression Models for Survival Data".
*CRAN*. https://cran.r-project.org/web/packages/timereg/index.html. - ↑ "Some remarks on the analysis of survival data". the First Seattle Symposium of Biostatistics: Survival Analysis. 1997.
- ↑ Bender, R.; Augustin, T.; Blettner, M. (2006). "Generating survival times to simulate Cox proportional hazards models".
*Statistics in Medicine***24**(11): 1713–1723. doi:10.1002/sim.2369. PMID 16680804. - ↑
Nan Laird and Donald Olivier (1981). "Covariance Analysis of Censored Survival Data Using Log-Linear Analysis Techniques".
*Journal of the American Statistical Association***76**(374): 231–240. doi:10.2307/2287816. - ↑
P. McCullagh and J. A. Nelder (2000). "Chapter 13: Models for Survival Data".
*Generalized Linear Models*(Second ed.). Boca Raton, Florida: Chapman & Hall/CRC. ISBN 978-0-412-31760-6. (Second edition 1989; first CRC reprint 1999.) - ↑ Tibshirani, R. (1997). "The Lasso method for variable selection in the Cox model".
*Statistics in Medicine***16**(4): 385–395. doi:10.1002/(SICI)1097-0258(19970228)16:4<385::AID-SIM380>3.0.CO;2-3. PMID 9044528. - ↑ Bradić, J.; Fan, J.; Jiang, J. (2011). "Regularization for Cox's proportional hazards model with NP-dimensionality".
*Annals of Statistics***39**(6): 3092–3120. doi:10.1214/11-AOS911. PMID 23066171. - ↑ Bradić, J.; Song, R. (2015). "Structured Estimation in Nonparametric Cox Model".
*Electronic Journal of Statistics***9**(1): 492–534. doi:10.1214/15-EJS1004. - ↑ Kong, S.; Nan, B. (2014). "Non-asymptotic oracle inequalities for the high-dimensional Cox regression via Lasso".
*Statistica Sinica***24**(1): 25–42. doi:10.5705/ss.2012.240. PMID 24516328. - ↑ Huang, J.; Sun, T.; Ying, Z.; Yu, Y.; Zhang, C. H. (2011). "Oracle inequalities for the lasso in the Cox model".
*The Annals of Statistics***41**(3): 1142–1165. doi:10.1214/13-AOS1098. PMID 24086091. - ↑ "CoxModelFit". https://reference.wolfram.com/language/ref/CoxModelFit.html.

## References

- Bagdonavicius, V.; Levuliene, R.; Nikulin, M. (2010). "Goodness-of-fit Criteria for the Cox model from Left Truncated and Right Censored Data".
*Journal of Mathematical Sciences***167**(4): 436–443. doi:10.1007/s10958-010-9929-6. - Cox, D. R.; Oakes, D. (1984).
*Analysis of Survival Data*. New York: Chapman & Hall. ISBN 978-0412244902. - Collett, D. (2003).
*Modelling Survival Data in Medical Research*(2nd ed.). Boca Raton: CRC. ISBN 978-1584883258. - Gouriéroux, Christian (2000). "Duration Models".
*Econometrics of Qualitative Dependent Variables*. New York: Cambridge University Press. pp. 284–362. ISBN 978-0-521-58985-7. https://books.google.com/books?id=dE2prs_U0QMC&pg=PA284. - Singer, Judith D.; Willett, John B. (2003). "Fitting Cox Regression Models".
*Applied Longitudinal Data Analysis: Modeling Change and Event Occurrence*. New York: Oxford University Press. pp. 503–542. ISBN 978-0-19-515296-8. https://books.google.com/books?id=eDWG3728OxcC&pg=PA503. - Therneau, T. M.; Grambsch, P. M. (2000).
*Modeling Survival Data: Extending the Cox Model*. New York: Springer. ISBN 978-0387987842.

Original source: https://en.wikipedia.org/wiki/Proportional hazards model.
Read more |