Description Usage Arguments Value Author(s) Examples
View source: R/Blanket_statsments.R
Wraps blanket_stats. Run a list of models with different modalities/outcomes for a list of different predictor sets with the same covariables.
1 2 3 4 5 6 7 | blanket_statsments(
df,
models_to_run,
predictor_sets,
covariates = c(),
verbose = FALSE
)
|
df |
data.frame containing the data set. |
models_to_run |
either a named list or data.frame type, with every entry/row having the keys/columns outcome, modality, and event_censor |
predictor_sets |
named list of lists containing the set of predictors. See blanket_stats for details |
covariates |
vector of characters denoting columns with covariables |
verbose |
logical. TRUE activates printout messages. |
named list of named lists of models
J. Peter Marquardt
1 2 3 4 5 6 7 | data <- survival::lung
models_to_run <- list('OS' = list(
'outcome' = 'time', 'modality' = 'cox', 'event_censor' = 'status'),
'weight_loss' = list('outcome' = 'wt.loss', 'modality' = 'linear', 'event_censor' = NA))
predictor_sets <- list('age' = c('age'),'age_ecog' = c('age', 'ph.ecog'))
covariates = c('sex')
bl_stats <- blanket_statsments(data, models_to_run, predictor_sets, covariates)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.