Skip to contents

Compute correlation summaries and VIF-style diagnostics for a packaged real dataset.

Usage

diagnose_real_data(dataset, cor_threshold = 0.7)

Arguments

dataset

A packaged dataset name or misspls_dataset object.

cor_threshold

Absolute-correlation threshold used when reporting predictor pairs and predictor-response associations.

Value

A list with correlation and VIF summaries.

Examples

diag_bromhexine <- diagnose_real_data("bromhexine")
names(diag_bromhexine)
#> [1] "dataset"                "n"                      "p"                     
#> [4] "predictor_correlations" "response_correlations"  "vif"                   
#> [7] "notes"