blanket_statsments: Run multiple different models with different sets of...

Description Usage Arguments Value Author(s) Examples

View source: R/Blanket_statsments.R

Description

Wraps blanket_stats. Run a list of models with different modalities/outcomes for a list of different predictor sets with the same covariables.

Usage

1
2
3
4
5
6
7
blanket_statsments(
  df,
  models_to_run,
  predictor_sets,
  covariates = c(),
  verbose = FALSE
)

Arguments

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.

Value

named list of named lists of models

Author(s)

J. Peter Marquardt

Examples

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)

BlanketStatsments documentation built on Aug. 2, 2021, 9:06 a.m.