Learn R Programming

crskdiag (version 1.0.1)

diag_lin: Diagnostics for the linear functional form and the link function

Description

Checks the linear functional form and the log-log link function assumptions of the Fine and Gray model. For internal use only.

Usage

diag_lin(t, ic, z, n.total, Nit, n.sim, n.plot, seed, minor_included)

Arguments

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.

Value

a "diaglin" class object.

Details

More details can be found in Li, Scheike and Zhang (2015).

References

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.

See Also

diag_crr, plot.diaglin, print.diaglin