diag_lin {crskdiag} | R Documentation |
Checks the linear functional form and the log-log link function assumptions of the Fine and Gray model. For internal use only.
diag_lin(t, ic, z, n.total, Nit, n.sim, n.plot, seed, minor_included)
t |
a vector of observed times. |
ic |
a vector of cause indicators. |
z |
a matrix of covariates for fitting the model. |
n.total |
total number of samples |
Nit |
number of iterations for model estimation. Default is 20. |
n.sim |
number of iterations in the analytical diagnostics. Default is 1000. |
n.plot |
number of plots of simulated processes used in the graphical diagnostics. Default is 10. |
seed |
a seed used in generating the simulated processes. |
minor_included |
include the minor term in FG model if TRUE. Default is TRUE. |
More details can be found in Li, Scheike and Zhang (2015).
a "diaglin" class object.
Jianing Li
Li, Jianing, Thomas H. Scheike, and Mei-Jie Zhang. "Checking Fine and Gray subdistribution hazards model with cumulative sums of residuals." Lifetime data analysis 21.2 (2015): 197-217.
diag_crr
, plot.diaglin
, print.diaglin