Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision c12a9847539968aa375d4df8349a3a524e7c1bb5 authored by Mark Clements on 17 January 2019, 14:50:04 UTC, committed by cran-robot on 17 January 2019, 14:50:04 UTC
version 1.4.5
1 parent ecc02a9
  • Files
  • Changes
  • 85738a1
  • /
  • inst
  • /
  • aft.tex
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:c12a9847539968aa375d4df8349a3a524e7c1bb5
directory badge
swh:1:dir:ccee762053d8f92329bd8e8c3049450fc00d0d42
content badge
swh:1:cnt:dcd8702b9c6c62ea3e8359804e8801882c800509

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
aft.tex
\documentclass{article}

\usepackage{amsmath}

\begin{document}

\section{Smooth accelerated failure time models}

\subsection{Time-constant acceleration factors}

Let survival to time $t$ for covariates $x$ be modelled as an accelerated failure time model using
\begin{align*}
  S(t|x) &= S_0(t \exp(-\eta(x;\beta)))
\end{align*}
where $\eta$ is a linear predictor. Moreover, let the baseline survival function be modelled as
\begin{align*}
  S_0(t) &= \exp(-\exp(\eta_0(\log(t);\beta_0)))
\end{align*}
where $\eta_0$ is a linear predictor. Then the combined regression model is
\begin{align*}
  S(t|x) &= \exp(-\exp(\eta_0(\log(t) -\eta(x; \beta);\beta_0))) 
\end{align*}
We can calculate the hazard, such that
\begin{align*}
  h(t|x) &= \frac{\partial}{\partial t} \left(-\log(S(t|x))\right) \\
         &= \exp(\eta_0(\log(t) -\eta(x; \beta);\beta_0)) \eta_0'(\log(t) -\eta(x; \beta);\beta_0)/t
\end{align*}

\subsection{Time-dependent acceleration factors}

We can model survival as an accelerated failure time model with time-dependent effects as
\begin{align*}
  S(t|x) &= S_0\left(\int_0^t\exp(-\eta_1(x,u;\beta)) \mathrm{d}u\right) = S_0\left(t\exp(-\eta(x,t;\beta))\right)
\end{align*}
for a time-specific linear predictor $\eta_1$ and where $\eta$ now models for cumulative time-dependent effects.
By differentiation with respect to time $t$, we have that
\begin{align*}
  \exp(-\eta_1(x,t;\beta)) &= \frac{\partial}{\partial t} t\exp(-\eta(x,t;\beta)) \\
                            &= \exp(-\eta(x,t;\beta)) \left(1- t \frac{\partial}{\partial t} \eta(x,t;\beta)\right)
\end{align*}
so that $\eta_1(x,t;\beta)=\eta(x,t;\beta) - \log\left(1- t \frac{\partial}{\partial t} \eta(x,t;\beta)\right)$. This shows that we can recover the time-specific acceleration factors from $\eta$.

The combined regression model is then
\begin{align*}
  S(t|x) &= \exp(-\exp(\eta_0(\log(t) -\eta(x,t; \beta);\beta_0)))
\end{align*}

The hazard is then
\begin{align*}
  h(t|x) &= \frac{\partial}{\partial t} -\log(S(t|x)) \\
         &= \exp(\eta_0(\log(t) -\eta(x,t; \beta);\beta_0))\, \eta_0'(\log(t) -\eta(x,t; \beta);\beta_0)\times \\
         &\qquad \left(1/t-\frac{\partial}{\partial t}\eta(x,t; \beta)\right)
\end{align*}


\subsection{R implementation}

The linear predictor $\eta_0$ is modelled using natural splines. The linear predictor $\eta$ can be modelled freely provided the linear predictor is a smooth function of time.

Initial values for the time-constant log acceleration factors were calculated from a Weibull regression. The time-varying log acceleration factors were assumed to be zero.  Cox regression and the Breslow estimator was used to calculate baseline survival; parameters for the baseline were estimated using linear regression with natural splines fitted to the log-times at the event times. 

We included quadratic penalties to ensure that $\eta_0'(\log(t) -\eta(x,t; \beta);\beta_0)$ and $1/t-\frac{\partial}{\partial t}\eta(x,t; \beta)$ were positive. For speed, the model has been implemented in C++, with optimisation using the Nelder-Mead algorithm.

\end{document}


%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API