Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
PCA, or principal components analysis, is one of the most wide-spread statistical methods in use. It shows up in many disciplines, from political science and psychology, to chemistry and biology. PCA is also really challenging to understand.
I’m pleased to announce that my colleague David Harvey and I have recently released LearnPCA
, an R
package to help people with understanding PCA. In LearnPCA
we’ve tried to integrate our years of experience teaching the topic, along with the best insights we can find in books, tutorials and the nooks and crannies of the internet. Though our experience is in a chemometrics context, we use examples from different disciplines so that the package will be broadly helpful.
The package contains seven vignettes that proceed from the conceptual basics to advanced topics. As of version 0.2.0, there is also a Shiny app to help visualize the process of finding the principal component axes. The current vignettes are:
- A Guide to the LearnPCA Package
- A Conceptual Introduction to PCA
- Step-by-Step PCA
- Understanding Scores and Loadings
- Visualizing PCA in 3D
- The Math Behind PCA
- A Comparison of Functions for PCA
You can access the vignettes at the Github Site, you don’t even have to install the package. For the Shiny app, do the following:
install.packages("LearnPCA") # you'll need version 0.2.0 library("LearnPCA") PCsearch()
We would really appreciate your feedback on this package. You can do so in the comments below, or open an issue.
< !--html_preserve--> < !--/html_preserve--> < !--html_preserve--> < !--/html_preserve-->Reuse
< section class="quarto-appendix-contents">Citation
@online{hanson2022, author = {Bryan Hanson}, title = {Introducing {LearnPCA}}, date = {2022-05-03}, url = {http://chemospec.org/posts/2022-05-03-LearnPCA-Intro/2022-05-03-LearnPCA-Intro.html}, langid = {en} }
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.