Dimension Reduction - Multiple Correspondence Analysis

Multiple Correspondence Analysis analyses categorical variables to detect underlying structure in the data set. See this blog post for en explanation of multiple correspondence analysis and its relationship to correspondence analysis.
How to Create
- Add the object:
- In Displayr: Insert > More > Dimension Reduction > Multiple Correspondence Analysis
- In Q: Create > Dimension Reduction > Multiple Correspondence Analysis
- Select your variables under Inputs > Input variables
Example
The relationship between 5 categorical variables.
Options
Input variables Categorical variables to analyse. Note that when many variables are selected, using weights may cause significant slowdown.
Output How the analysis results should be displayed. The choices are:
- Scatterplot: A labelled scatterplot showing associations between variables
- Text: A text representation of the analysis.
Maximum number of labels to plot Limits the number of labels shown in the scatterplot. The remaining points are shown without labels. This can be useful with large data sets to avoid overlapping labels.
Chart title Title of the scatterplot.
Color palette Controls the colors of the points in the Scatterplot output.
Missing data Method for dealing with missing data. See Missing Data Options.
Variable names Displays Variable Names in the output instead of labels.
Additional Properties
When using this feature you can obtain additional information that is stored by the R code which produces the output.
- To do so, select Create > R Output.
- In the R CODE, paste: item = YourReferenceName
- Replace YourReferenceName with the reference name of your item. Find this in the Report tree or by selecting the item and then going to Properties > General > Name from the object inspector on the right.
- Below the first line of code, you can paste in snippets from below or type in str(item) to see a list of available information.
For a more in depth discussion on extracting information from objects in R, checkout our blog post here.
Acknowledgements
The R package ca is used to compute the correspondence analysis.
Code
▶ Show Code
▶ Show Code