R/coxme.R
coxExp.Rd
Transform the unit of coefficients to "HR"
coxExp(cox.coef, dec)
cox.coef | cox model coefficients |
---|---|
dec | Decimal point |
The transforemed coefficients(95
DETAILS
library(coxme) fit <- coxme(Surv(time, status) ~ ph.ecog + age + (1 | inst), lung) jstable:::coxExp(jstable:::coxmeTable(fit))#> HR pv #> [1,] "2 (1,2)" "7.17364840512325e-05" #> [2,] "1 (1,1)" "0.226949744846121"