Dimensionality Reduction in R
Matt Pickard
Owner, Pickard Predictives, LLC
healthcare_df %>% select(where(is.numeric)) %>%correlate() %>%shave() %>%rplot(print_cor = TRUE) +theme(axis.text.x = element_text(angle = 90, hjust = 1))






# maak en bereid het recept voor corr_recipe <- recipe(Attrition ~ ., data = healthcare_df) %>%step_corr(all_numeric_predictors(), threshold = 0.7) %>%prep()# Pas het recept toe op de data filtered_healthcare_df <- corr_recipe %>% bake(new_data = NULL)# Bepaal welke features zijn verwijderd tidy(corr_recipe, number = 1)
Dimensionality Reduction in R