Description Usage Arguments Value Author(s) See Also 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 | table_blanket_statsments(df, blanket_statsment_models)
|
df |
data.frame containing the data set. |
blanket_statsment_models |
list of models produced by blanket_statsments() |
data.frame with tabled results
J. Peter Marquardt
[blanket_statsments()] for models and [table_predictors()] for tabling results
1 2 3 4 5 6 7 8 | 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)
tbl <- table_blanket_statsments(data, bl_stats)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.