[Paper Review] Multivariate Analysis of Mixed Data. The R Package PCAmixdata
This paper introduces the R package PCAmixdata, which extends multivariate analysis to mixed data types (numerical and categorical variables) via PCAmix, PCArot, and MFAmix. It unifies PCA and MCA using generalized singular value decomposition, enabling dimensionality reduction, rotation, and multi-table analysis with consistent notation and interpretable graphical outputs for real-world datasets like Gironde's municipal data.
Mixed data arise when observations are described by a mixture of numerical and categorical variables. The R package PCAmixdata extends to this type of data standard multivariate analysis methods which allow description, exploration and visualization of the data. The key techniques/methods included in the package are principal component analysis for mixed data (PCAmix), varimax-like orthogonal rotation for PCAmix, and multiple factor analysis for mixed multi-table data. This paper proposes a unified mathematical presentation of the different methods with common notations, as well as providing a summarised presentation of the three algorithms, with details to help the user understand graphical and numerical outputs of the corresponding R functions. This then allows the user to easily provide relevant interpretations of the results obtained. The three main methods are illustrated on a real dataset composed of four data tables characterizing living conditions in different municipalities in the Gironde region of southwest France.
Motivation & Objective
- To provide a unified mathematical framework for multivariate analysis of mixed data using common notations across PCA, MCA, and their extensions.
- To implement and document three core methods—PCAmix, PCArot, and MFAmix—within a single R package for practical use in data analysis.
- To enhance interpretability of results through detailed explanations of numerical outputs and graphical representations, particularly for mixed data types.
- To enable prediction of new observations and projection of supplementary variables or groups in PCAmix and MFAmix using S3 methods.
- To support real-world applications by providing the gironde dataset, a multi-table dataset from French municipalities with employment, housing, services, and environmental variables.
Proposed method
- Uses generalized singular value decomposition (GSVD) to unify PCA and MCA, enabling joint analysis of numerical and categorical variables in PCAmix.
- Applies a varimax-like orthogonal rotation (PCARot) to PCAmix results to improve interpretability by maximizing variance of loadings across components.
- Extends MFA to mixed data by allowing groups with both numerical and categorical variables, differing from standard MFA that requires homogeneous variable types per group.
- Employs a rotation algorithm in PCArot that iteratively optimizes rotation angles between component pairs using angle calculation based on loadings and variable contributions.
- Implements S3 methods in R (plot, predict, suppvar) for object classes PCAmix, PCArot, and MFAmix to support visualization, prediction, and supplementary variable projection.
- Handles missing data via mean imputation for numerical variables and zero imputation in indicator matrices for categorical variables, though notes more advanced methods are available.
Experimental results
Research questions
- RQ1How can PCA and MCA be mathematically unified to analyze mixed numerical and categorical data within a single framework?
- RQ2What is the role of generalized singular value decomposition in enabling dimensionality reduction for mixed data types?
- RQ3How does the PCArot rotation method improve the interpretability of component loadings in PCAmix compared to standard PCA?
- RQ4In what way does MFAmix extend traditional MFA to allow mixed-variable groups, and how does it differ from existing multi-table methods?
- RQ5How can supplementary variables and new observations be meaningfully projected onto PCAmix and MFAmix maps using the R package?
Key findings
- The PCAmix method produces results equivalent to dudi.mix (ade4) and FAMD (FactoMineR), confirming its validity for mixed data analysis.
- The PCArot rotation algorithm successfully enhances component interpretability by maximizing variance of loadings, with convergence achieved when rotation angles reach zero.
- The MFAmix function supports mixed-variable groups in multi-table analysis, unlike FactoMineR’s MFA which requires homogeneous variable types per group.
- The package enables prediction of component scores for new observations and projection of supplementary variables or groups, extending the utility of PCAmix and MFAmix beyond initial analysis.
- The gironde dataset—comprising 542 municipalities and 27 variables across four domains (employment, housing, services, environment)—demonstrates the method’s practical applicability in real-world social science and geographic data analysis.
- Theoretical corrections were made to prior work, notably correcting the relationship between A* and ˜A from A∗= M−1/2 ˜A to A∗= M1/2 ˜A, improving the mathematical consistency of the framework.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.