# PCA on a subset of ONZE speakers
onze_pca <- prcomp(
onze_intercepts |> dplyr::select(-speaker),
scale = TRUE
)
# PCA on all ONZE speakers
onze_full <- prcomp(
onze_intercepts_full |> dplyr::select(-speaker),
scale = TRUE
)
# rotate subset to match loadings of `onze_full`
rotated_pca <- onze_pca |>
pca_rotate_procrustes(
onze_full, max_pcs = 5
)
Run the code above in your browser using DataLab