data(survey_example)
# This dataset has mixed types: numeric (age, overall_satisfaction),
# factors (gender, education), and ordered factors (Likert items)
str(survey_example[, 1:10])
# \donttest{
# Use assocSelect() for mixed-type data pruning
# This may take a few seconds with 34 variables
pruned <- assocSelect(survey_example[, -1], # Exclude respondent_id
threshold = 0.8,
method_ord_ord = "spearman")
length(attr(pruned, "selected_vars"))
# }
Run the code above in your browser using DataLab