This is a special function used in the context of Cox models and shared and
joint frailty models. It identifies time-varying effects of covariates in
the model. It is used in 'frailtyPenal' on the right hand side of formula or
of formula.terminalEvent.
When considering time-varying effects in a survival model, regression
coefficients can be modeled with a linear combination of B-splines
\(B(t)\) with coefficients \(\zeta\) of order \(q\) with \(m\)
interior knots :
$$\beta(t)=\sum_{j=-q+1}^m\zeta_jB_{j,q}(t)$$
You can notice that a linear combination of B-splines of order 1 without any
interior knots (0 interior knot) is the same as a model without time-varying
effect (or with constant effect over time).
Statistical tests (likelihood ratio tests) can be done in order to know
whether the time-dependent coefficients are significantly different from
zero or to test whether a covariate has a time-dependent effect
significantly different from zero or not. These tests are correct only with
a parametric approach yet.
- Proportional Hazard assumption ?
Time-dependency of a covariate effect can be tested. We need to estimate
\(m+q\) parameters \(\zeta_j\) for \(j=-q+1,...,m\) for a time-varying
coefficient. Only one (\(q=1\),\(m=0\)) parameter is estimated for a
constant effect. A global test is done.
$$H_0:\beta (t)=\beta$$
The corresponding LR statistic has a \(\chi^2\) distribution of degree
\(m+q-1\).
- Significant association ?
We can also use a LR test to test whether a covariate has a significant
effect on the hazard function. The null hypothesis is :
$$H_0:\beta (t)=0$$
For that we fit a model considering the covariate with a regression
coefficent modeled using B-splines and a model without the covariate. Hence,
the LR statistic has a \(\chi^2\) distribution of degree \(m+q\).