Learn R Programming

SemiCompRisks (version 2.0)

ehr: The function to calculate the conditional explanatory hazard ratio (EHR)

Description

The function to calculate the conditional explanatory hazard ratio (EHR)

Usage

ehr(Cov2 = NULL, Cov3 = NULL, x, xlim = c(0, 10))

Arguments

Cov2
a covariate vector of length p2 that corresponds to transition "from no event to terminal event"
Cov3
a covariate vector of length p3 that corresponds to transition "from non-terminal event to terminal event"
x
an object of class BayesID
xlim
the time (x-axis) limits (x1, x2) of the plot.

Value

  • ehr returns an object of class ehr.
  • ehrestimated conditional EHR (posterior median) at time points
  • timetime points at which EHR is estimated

References

Lee, K. H., Haneuse, S., Schrag, D., and Dominici, F. (2014), Bayesian semiparametric analysis of semicompeting risks data: investigating hospital readmission after a pancreatic cancer diagnosis, Journal of the Royal Statistical Society: Series C, in press.

See Also

BayesID, plot.ehr