redundancy_analysis {BlanketStatsments} | R Documentation |
Perform a redundancy analysis on an existing model
redundancy_analysis(model, data, r2_threshold = 0.9, nk = 0)
model |
a statistical regression model of class linear, logistic or coxph |
data |
data.frame used to create the model |
r2_threshold |
float threshold value to consider a parameter redundant |
nk |
number of knots in splicing |
an object of class "redun"
J. Peter Marquardt
data <- survival::lung
mod <- build_reg_model(data, 'age', c('sex'))
redundancy_analysis(mod, data)