filter_ezcox | R Documentation |
Filter ezcox
filter_ezcox(x, levels = "auto", type = c("both", "contrast", "ref"))
x |
a |
levels |
levels to filter, default is 'auto', it will filter all control variables. |
type |
default is 'both' for filtering both contrast level and reference level. It can also be 'contrast' for filtering only contrast level and 'ref' for filtering only reference level. |
a ezcox
object
Shixiang Wang w_shixiang@163.com
library(survival)
lung$ph.ecog <- factor(lung$ph.ecog)
zz <- ezcox(lung, covariates = c("sex", "age"), controls = "ph.ecog")
zz
filter_ezcox(zz)
filter_ezcox(zz, c("0", "2"))
filter_ezcox(zz, c("0", "2"), type = "contrast")
t <- filter_ezcox(zz, c("0", "2"), type = "ref")
t
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.