Learn R Programming

SemiCompRisks (version 1.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 "no event-> terminal event"
Cov3
a covariate vector of length p3 that corresponds to transition "non-terminal event-> 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. (2013). Bayesian Semi-parametric Analysis of Semi-competing Risks Data: Estimating Readmission Rates among Pancreatic Cancer Patients, submitted.

See Also

BayesID, plot.ehr