View source: R/ezcox_parallel.R
ezcox_parallel | R Documentation |
Parallelly Run Cox Analysis in Batch Mode
ezcox_parallel(
data,
covariates,
controls = NULL,
time = "time",
status = "status",
batch_size = 100,
global_method = c("likelihood", "wald", "logrank"),
keep_models = FALSE,
return_models = FALSE,
model_dir = file.path(tempdir(), "ezcox"),
parallel = TRUE,
verbose = FALSE
)
data |
a |
covariates |
column names specifying variables. |
controls |
column names specifying controls. |
time |
column name specifying time, default is 'time'. |
status |
column name specifying event status, default is 'status'. |
batch_size |
processing size in a batch. |
global_method |
method used to obtain global p value for cox model, should be one of "likelihood", "wald", "logrank". The likelihood-ratio test, Wald test, and score logrank statistics. These three methods are asymptotically equivalent. For large enough N, they will give similar results. For small N, they may differ somewhat. The Likelihood ratio test has better behavior for small sample sizes, so it is generally preferred. |
keep_models |
If |
return_models |
default |
model_dir |
a path for storing model results. |
parallel |
if |
verbose |
if |
a ezcox
object
Shixiang Wang w_shixiang@163.com
library(survival)
t <- ezcox_parallel(lung, covariates = c("sex", "ph.ecog"), controls = "age")
t
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.