GaFrailtyMM {MMAD} | R Documentation |
MM algorithm based on AD technology for gamma frailty model
Description
Let and
denote the
survival time, the censoring time and a vector of covariates, respectively. For the
-th individual in the
-th cluster, for
and
. And assume the censoring time
is independent of the survival time
given
, and
is the censoring indicator.
Conditional on a cluster-specific frailty
, then the frailty model postulates that the instantaneous hazard rate function of
is
where is a baseline hazard rate and
is a vector of regression parameters. We assume that the frailty
has a gamma distribution
with mean 1, variance
and density
and we denote as the accumulative hazard rate. The
GaFrailtyMM
function is used to calculate the gamma frailty model.
Usage
GaFrailtyMM(
formula,
data,
beta = NULL,
theta = NULL,
lambda = NULL,
Maxiter = 2000,
convergence = 1e-06,
...
)
Arguments
formula |
A formula object, which contains on the left hand side an object of the type |
data |
A |
beta |
A vector of unknown regression parameters, default is |
theta |
The variance of frailty factors subject to gamma distribution, default is |
lambda |
Baseline hazard rate, default set to |
Maxiter |
The maximum number of iterations is specified by default as 2000. |
convergence |
Specify the convergence criterion, the default is 1e-6. |
... |
Additional arguments |
Details
The GaFrailtyMM
function is used to calculate gamma frailty survival model using MM algorithms
based on AD technology. EM algorithms relies on the fact that, after profiling out the nonparametric component ,
the resulting function is concave. When it does not hold, using Newton method to maximize the resulting function is
difficult especially when there exist a large number of covariates. MM algorithms that can avoid the
concavity requirement and bypass Newton method and matrix inversion.
Value
An object of class GaFrailtyMM
that contains the following fields: total amount of observations,
the Time, the , the
, total number of failure events, total number of iterations, convergence result, the log likelihood value,
the
, the standard deviation of the estimated
,
the likelihood-based 95% confidence interval for the
,
,
the standard deviation of the estimated
, the likelihood-based 95% confidence interval for the
,
the variable name.
References
Huang X.F., Xu J.F. and Tian G.L.(2019). 'On profile MM algorithms for gamma frailty survival models.' Statistica Sinica 29(2), 895-916.
Examples
library(survival)
GaFrailtyMM(Surv(time, status) ~ age + sex + cluster(id), data=kidney)