goftte (version 1.0.5)

goftte-package: Omnibus tests to check the proportional regression models assumptions

Description

Let's denote \(Z_i=(Z_{i,k})_{1\leq k \leq p}\) a matrix of \(p\) individual regression covariates, and \(\widehat{\beta}=(\widehat{\beta}_{k})_{1\leq k \leq p}\) the vector of estimated regression coefficients assuming a Cox (1972) proportional hazards (PH) regression model or a Fine & Gray (1999) proportional subdistribution hazards (PSH) regression model. The package implements objective diagnotic tools to assess the key modeling assumptions using cumulative sums of model residuals of the form :

$$U(\widehat{\beta},t,z) = \sum_{i=1}^{n} \int_{0}^{t} f(Z_{i})1\{Z_{i} \le z\}d\widehat{M}_{i}(u).$$ Here \(f(.)\) denotes a smooth function, \(z\) the covariates values and \(\widehat{M}_i(t)\) the model residuals, so-called martingales residuals in Cox regression settings.

To test for PH or PSH assumptions, Lin & al. (1993) and Li & al. (2015) proposed test statistics obtained by letting \(f(Z_{i})=Z_{i}\) and \(z {\longrightarrow} \infty\). In that case, the test statistics reduce to the supremum value of the score process \(U(\beta,t)\) evaluated at \(\beta=\widehat{\beta}\) (Kolmogorov-Smirnov type test statistic). With respect to covariate \(k\), the statistic is written as follows : $$KS=\sup_{t}\mid \mid U_k(\widehat{\beta},t)\mid \mid$$ For checking the functional form of a covariate included in the model, same type of statistics were adopted by considering the process \(U(\widehat{\beta},z)\) obtained by letting \(f(Z_{i})=1\) and \(t {\longrightarrow} \infty\).

Null limiting distribution of cumulative sum process are obtained by drawing \(R\) independent realizations of an asymtpotically equivalent gaussian process (Monte-Carlo simulations). The significance level of KS test statistics were derived from the approximated null distribution.

Our package can be viewed as an extension of the gof package (Holst, 2014) allowing to check the functional form assumptions of covariates in the Cox model and to check Fine and Gray model assumptions. Besides this, it proposes goodness-of-fit tests for PH and PSH based on Cramer-Von Mises (CvM) and Anderson-Darling (AD) type test statistics as recommanded by Kvaloy (2004) :

$$CvM=\int_{0}^{\infty} U_k(\widehat{\beta},t)^2 dq(t)$$ $$AD=\int_{0}^{\infty} \frac{U_k(\widehat{\beta},t)^2}{q(t)(1-q(t))} dq(t)$$ Where \(q(t)=\frac{I_{k,k}(\widehat{\beta},t)}{I_{k,k}(\widehat{\beta},\infty)}\), and \(I(\widehat{\beta},t)\) denotes the consistent sample estimate of the score process covariance matrix.

Arguments

References

Cox DR (1972). Regression models and life-tables. Journal of the Royal Statistical Society. Series B (Methodological), 34(2), 187-220.

Fine JP and Gray RJ (1999). A Proportional Hzards Model for the Subdistribution of Competing Risk. American Statistical Association, 94(446), 496-509.

Lin DY, Wei JL and Ying Z (1993). Checking the Cox model with cumulative sums of martingale-based residuals. Biometrika, 80(3), 557-572.

Li J, Scheike TH and Zhang MJ (2015). Checking Fine & Gray subditribution hazards model with cumulative sums of residuals. Lifetime Data Analysis, 21(2), 197-217.

Holst KK (2014). gof: Model-diagnostics based on cumulative residuals. R package version 0.9.1, URL https://CRAN.R-project.org/package=gof.

Kvaloy JT and Neef LR (2004). Tests for the Proportional Intensity Assumption Based on the Score Process. Lifetime Data Analysis, 10(2), 139-157.