blanket_redundancy_analysis {BlanketStatsments}R Documentation

Blanket redundancy analysis

Description

Perform a blanket redundancy analysis on a list of existing models

Usage

blanket_redundancy_analysis(
  model_list,
  data,
  r2_threshold = 0.9,
  nk = 0,
  verbose = FALSE
)

Arguments

model_list

a list of statistical regression model of class linear, logistic or coxph

data

data.frame used to create the models

r2_threshold

float threshold value to consider a parameter redundant

nk

number of knots in splicing

verbose

ctivate printouts of key findings

Value

an list of objects of class "redun"

Author(s)

J. Peter Marquardt

See Also

[blanket_stats()]

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)
blanket_redundancy_analysis(bl_stats, data)


[Package BlanketStatsments version 0.1.2 Index]