Description Usage Arguments Value Author(s) See Also Examples
View source: R/Blanket_statsments.R
Perform a blanket redundancy analysis on a list of existing models
1 2 3 4 5 6 7 | blanket_redundancy_analysis(
model_list,
data,
r2_threshold = 0.9,
nk = 0,
verbose = FALSE
)
|
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 |
an list of objects of class "redun"
J. Peter Marquardt
[blanket_stats()]
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)
blanket_redundancy_analysis(bl_stats, data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.