We will in this lab explore how principal components are calculated and analyzed.
We will be using the concrete
data set from the {modeldata} package which is loaded with {tidymodels}.
- Calculate the PCA of the data
- Explore the loading, eigenvalues, and final projection using the broom package
- Visualize the projections. Look at how the scaling of the variables changes the projection
- Use the {recipes} package to calculate the principal components.