Home / Store / Introductory Principal Component Analysis Using R
Cover of Introductory Principal Component Analysis Using R, by Kilem L. Gwet, Ph.D.
PDF · R & RStudio

Introductory Principal Component Analysis Using R

A non-mathematical, RStudio-based walkthrough of Principal Component Analysis (PCA). No prior R experience is assumed beyond ordinary computer and analytical skills — some comfort with statistical reasoning helps, since PCA is an advanced technique, but the book explains it conceptually rather than through heavy derivation, aimed at analysts who want PCA as a practical, working skill.

Downloads

R scripts & datasets

Every dataset used in the book's worked examples, grouped by the chapter that introduces it.

Chapter 1 — Basics of Principal Components
statex77.csv

Data on the 50 U.S. states.

mtcars.csv

The Motor Trend Car Road Tests dataset.

iris.csv

Edgar Anderson's Iris dataset.

wdbc_data.csv

Wisconsin Diagnostic Breast Cancer dataset.

x1x2data.csv

Two variables, X1 and X2, measured on 50 subjects.

x1x2pcs.csv

Principal component scores computed for those same 50 subjects.

Chapter 2 — Overview of R with RStudio
employee.xlsx

Employee compensation by gender, age, and marital status — Excel format.

employee.csv

The same compensation data, in CSV format.

Chapter 3 — Computing Principal Components with R
HWdata.xlsx

Height and weight measurements for 15 individuals.

Chapter 4 — Visualization of Principal Components
wdbc_data.csv

Wisconsin Diagnostic Breast Cancer dataset, CSV format.

wdbc.xlsx

The same dataset, in Excel format.

employee_demo.csv

Demographic data for 7 employees (ID, gender, age, marital status).

employee_name.csv

Names, state of residence, and employment status for those same 7 employees.

gdp_by_state.csv

2020 U.S. quarterly GDP by state, alongside 2019 population figures.

Chapter 5 — Basic Use of Principal Components
employee_demo.csv

Demographic data for 7 employees (ID, gender, age, marital status).

Chapter 6 — Statistical Analysis Based on Principal Components
employee_demo.csv

Demographic data for 7 employees (ID, gender, age, marital status).

← Back to Store