blanket_statsments {BlanketStatsments}R Documentation

Run multiple different models with different sets of predictors

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

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

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)


[Package BlanketStatsments version 0.1.2 Index]