Learn R Programming

MIICD (version 1.1)

get.est.cr.cox: Compute estimates.

Description

This function uses the crprep function from mstate package to compute coeficients, variance and Breslow baseline estimate of hazards using a cox proportionnal hazard model with counting process notation for competing risks. For internal use.

Usage

get.est.cr.cox( x , data , t1 , status , trans , cens , keep , formula )

Arguments

x
time to events.
data
original dataset.
t1
unique single times at which the survival is to be estimatied.
status
columns indicating the status of observations
trans
transission of interest
cens
censure code
keep
covariate to keep (see crprep for details)
formula
an object of class "formula" (or one that can be coerced to that class): a symbolic description of the model to be fitted.

Value

  • survAn estimate of the survival function
  • sigmaAn estimate of the variance covariance matrix
  • betaAn estimate of the coeficients

References

GESKUS, Ronald B. Cause-Specific Cumulative Incidence Estimation and the Fine and Gray Model Under Both Left Truncation and Right Censoring. Biometrics, 2011, vol. 67, no 1, p. 39-49.

See Also

crprep mstate