Package: LearnPCA 0.3.4

LearnPCA: Functions, Data Sets and Vignettes to Aid in Learning Principal Components Analysis (PCA)

Principal component analysis (PCA) is one of the most widely used data analysis techniques. This package provides a series of vignettes explaining PCA starting from basic concepts. The primary purpose is to serve as a self-study resource for anyone wishing to understand PCA better. A few convenience functions are provided as well.

Authors:Bryan A. Hanson [aut, cre], David T. Harvey [aut]

LearnPCA_0.3.4.tar.gz
LearnPCA_0.3.4.zip(r-4.7)LearnPCA_0.3.4.zip(r-4.6)LearnPCA_0.3.4.zip(r-4.5)
LearnPCA_0.3.4.tgz(r-4.6-any)LearnPCA_0.3.4.tgz(r-4.5-any)
LearnPCA_0.3.4.tar.gz(r-4.7-any)LearnPCA_0.3.4.tar.gz(r-4.6-any)
LearnPCA_0.3.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
LearnPCA/json (API)

# Install 'LearnPCA' in R:
install.packages('LearnPCA', repos = c('https://bryanhanson.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/bryanhanson/learnpca/issues

Pkgdown/docs site:https://bryanhanson.github.io

On CRAN:

Conda:

6.05 score 14 stars 707 downloads 3 exports 37 dependencies

Last updated from:fc8715733a. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK153
source / vignettesOK202
linux-release-x86_64OK148
macos-release-arm64OK95
macos-oldrel-arm64OK98
windows-develOK97
windows-releaseOK84
windows-oldrelOK78
wasm-releaseOK125

Exports:PCAtoXhatPCsearchXtoPCAtoXhat

Dependencies:base64encbslibcachemclassclicommonmarkdigestfastmapfontawesomefsgluehtmltoolshttpuvjquerylibjsonlitelaterlifecyclelitedownmagrittrmarkdownMASSmemoisemimennetotelpromisesR6rappdirsRcpprlangrpartsassshinysourcetoolswithrxfunxtable

A Guide to the LearnPCA Package
Audience | Why a Package? | About the Authors | Acknowledgements

Last update: 2024-04-26
Started: 2022-02-27

A Conceptual Introduction to PCA
Conceptual Introduction to PCA | PCA Results Illustrated, No Code, No Math | Refinements 1 | Refinements 2 | A Social Science Data Set | A Spectroscopic Data Set

Last update: 2024-04-26
Started: 2022-02-27

Step-by-Step PCA
Step 1. Centering the Data | Step 3. Data Reduction | Using prcomp | Using All the Data | What Else is in the PCA Results? | Scree Plot | Loading Plot | How Does prcomp Actually Work? | Step 4. Undoing the Scaling | Step 5. Undoing the Centering | Proof of Perfect Reconstruction | The More Components Used, the Better the Reconstruction

Last update: 2024-04-26
Started: 2022-02-27

Understanding Scores and Loadings
Introduction | A Small Data Set | Rotating the Axes | Scores | Loadings

Last update: 2024-04-26
Started: 2022-02-27

Visualizing PCA in 3D
Visualizing The Original Data Set | The First Principal Component | The Second Principal Component | The Third Principal Component | How PCA Changes the Data Cloud | Final Thoughts

Last update: 2024-04-26
Started: 2022-02-27

The Math Behind PCA
Introduction | Matrix Decompositions | The SVD Decomposition | A Simple Implementation of SVD | Step 1 | Step 2 | Step 3 | Step 4 | Overall | Reporting | Comparison to the Answer from svd | Comparison to the Answer from prcomp | The Eigen Decomposition | A Simple Implementation of the Eigen Decomposition | The Relationship Between SVD and Eigen Decomposition | Singular Values vs Eigenvalues | A Note About the Meaning of "loadings" | Algorithmic Reality | The NIPALS Algorithm | A Simple Implementation of NIPALS | Checking Our work | Tying Things Together | References

Last update: 2024-04-26
Started: 2022-02-27

A Comparison of Functions for PCA
prcomp | princomp | Covariance | Correlation | prcomp vs princomp | Compare the Scores | Reconstruct the Original Data | svd | Compare to the Scores from prcomp | Compare to the Loadings from prcomp | eigen | Compare to the Scores from princomp | Compare to the Loadings from princomp | Wrap Up

Last update: 2024-04-26
Started: 2022-02-27

Notes/FAQ/Special Cases
Warning When Analyzing Time Series and Spatial Data | Working with Nominal or Ordinal Response Data

Last update: 2024-04-26
Started: 2024-04-23