ezcox 1.0.4
- Refined the handle of
isValidAndUnreserved()
.
- Enhanced the
forester()
to render labels better.
ezcox 1.0.3
- Add
utf8
as dependency to try passing check.
ezcox 1.0.2
- Fixed changable
ALL
group in ezcox_group()
.
- Supported interaction term in
controls
option.
library(survival)
library(ezcox)
lung$ph.ecog <- factor(lung$ph.ecog)
ezcox(lung, covariates = c("age"), controls = "sex:ph.ecog")
ezcox(lung, covariates = c("age", "wt.loss"), controls = "sex:ph.ecog")
show_forest(lung, covariates = c("age", "wt.loss"), controls = "sex:ph.ecog")
lung2 <- lung
lung2$sex <- ifelse(lung2$sex == 1, "M", "F")
ezcox_group(lung2, grp_var = "sex", covariate = "ph.ecog", controls = "age : wt.loss")