PCA with FactoMineR

18 Nov 2016 · 16 min
16:28

The tutorial demonstrates how to perform Principal Component Analysis (PCA) in R with the FactoMineR package using the publicly available 'decathlon' dataset (41 athletes, 13 variables). It begins by describing the dataset structure—10 active quantitative event variables, two supplementary quantitative variables (ranking and total points), and one supplementary qualitative variable (competition: Decastar vs. 2004 Olympic Games). The speaker shows how to import the CSV file, preserving original variable names and row identifiers. A basic PCA is run on the ten active variables, with default standardization and extraction of five components, and the resulting eigenvalues, inertia percentages, and individual/variable tables are examined (coordinates, contributions, squared cosines). The tutorial then adds the supplementary variables, illustrating how they appear in the variable and individual plots (active variables in black, supplementary in blue, categories as barycenters). Results for all individuals are retrieved (nb_elements = Inf), highlighting that supplementary variables have no contribution values but can be evaluated via V‑test and cos2. The dimdesc function is introduced to characterize axes by correlating variables (including qualitative) with each dimension, with adjustable p‑value cut‑offs. Finally, extensive customization of the plot.PCA function is covered: adjusting font size (cex), hiding qualitative categories, adding titles, coloring by qualitative groups, drawing confidence ellipses (plotEllipses), selecting specific axes, auto‑labeling, highlighting individuals or variables based on contribution or cos2, and other aesthetic tweaks (shadow, autolab). The tutorial concludes by encouraging users to explore the many plotting options available in FactoMineR.

Chapters

More from Yamossoun

8:56
youtube.com

Compteur synchrone - Logique séquentielle

2w ago
11:58
youtube.com

Compteur asynchrone et diviseur de fréquence - Logique séquentielle

3w ago
11:37
youtube.com

Les registres (parallèle et à décalage) - Logique séquentielle

1mo ago
6:14
youtube.com

Bascule T (Toggle) - Logique séquentielle

1mo ago
12:05
youtube.com

Bascule JK - Logique séquentielle

1mo ago
9:17
youtube.com

Bascule D flip-flop active sur front montant - Logique séquentielle

1mo ago
10:08
youtube.com

Bascule D Latch - Logique séquentielle

1mo ago
8:13
youtube.com

Bascule RS - Logique séquentielle

1mo ago
5:04
youtube.com

Logique séquentielle - Introduction

2mo ago
1:15
youtube.com

Le codeur - Logique combinatoire #codeur #logique #circuit #booleanlogic

2mo ago
1:56
youtube.com

Algorithme de calcule de la racine carrée par dichotomie #dichotomy #squareroot #algorithm

3mo ago
See all content