<?xml version="1.0" encoding="UTF-8" ?>
<!-- RSS generated by PHPBoost on Sun, 08 Mar 2026 00:03:39 +0100 -->

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Last articles - STHDA : Principal Component Methods in R: Practical Guide]]></title>
		<atom:link href="https://www.sthda.com/english/syndication/rss/articles/31" rel="self" type="application/rss+xml"/>
		<link>https://www.sthda.com</link>
		<description><![CDATA[Last articles - STHDA : Principal Component Methods in R: Practical Guide]]></description>
		<copyright>(C) 2005-2026 PHPBoost</copyright>
		<language>en</language>
		<generator>PHPBoost</generator>
		
		
		<item>
			<title><![CDATA[Required R Packages for Principal Component Methods]]></title>
			<link>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/123-required-r-packages-for-principal-component-methods/</link>
			<guid>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/123-required-r-packages-for-principal-component-methods/</guid>
			<description><![CDATA[<!-- START HTML -->

  <div id="rdoc">

<div id="factominer-factoextra" class="section level2">
<h2>FactoMineR &amp; factoextra</h2>
<p>There are a number of <strong>R packages</strong> implementing <strong>principal component methods</strong>. These packages include: <em>FactoMineR</em>, <em>ade4</em>, <em>stats</em>, <em>ca</em>, <em>MASS</em> and <em>ExPosition</em>.</p>
<p>However, the result is presented differently depending on the used package.</p>
<p>To help in the interpretation and in the visualization of multivariate analysis - such as cluster analysis and principal component methods - we developed an easy-to-use R package named <strong>factoextra</strong> (official online documentation: <a href="https://www.sthda.com/english/rpkgs/factoextra" class="uri">https://www.sthda.com/english/rpkgs/factoextra</a>)<span class="citation">(Kassambara and Mundt 2017)</span>. </p>
<div class="block">
<p>
No matter which package you decide to use for computing principal component methods, the factoextra R package can help to extract easily, in a human readable data format, the analysis results from the different packages mentioned above. factoextra provides also convenient solutions to create ggplot2-based beautiful graphs.
</p>
</div>
<p>In this book, we’ll use mainly:</p>
<ul>
<li>the <strong>FactoMineR</strong> package <span class="citation">(Husson et al. 2017)</span> to compute principal component methods;</li>
<li>and the <strong>factoextra</strong> package <span class="citation">(Kassambara and Mundt 2017)</span> for extracting, visualizing and interpreting the results.</li>
</ul>
<p>The other packages - ade4, ExPosition, etc - will be presented briefly.</p>
<p>The Figure 2.1 illustrates the key functionality of FactoMineR and factoextra.</p>
<p><img src="https://www.sthda.com/english/sthda-upload/images/principal-component-methods/r-packages-multivariate-analysis-300dpi.png" alt="Key features of FactoMineR and factoextra for multivariate analysis" /></p>
<p>Methods, which outputs can be visualized using the factoextra package are shown on the Figure 2.2:</p>
<p><img src="https://www.sthda.com/english/sthda-upload/images/principal-component-methods/factoextra-r-package-300dpi.png" alt="Principal component methods and clustering methods supported by the factoextra R package" /></p>
</div>
<div id="installation" class="section level2">
<h2>Installation</h2>
<div id="installing-factominer" class="section level3">
<h3>Installing FactoMineR</h3>
<p>The FactoMineR package can be installed and loaded as follow:</p>
<pre class="r"><code># Install
install.packages("FactoMineR")

# Load
library("FactoMineR")</code></pre>
</div>
<div id="installing-factoextra" class="section level3">
<h3>Installing factoextra</h3>
<ul>
<li>factoextra can be installed from <a href="https://cran.r-project.org/package=factoextra">CRAN</a> as follow:</li>
</ul>
<pre class="r"><code>install.packages("factoextra")</code></pre>
<ul>
<li>Or, install the latest developmental version from <a href="https://github.com/kassambara/factoextra">Github</a></li>
</ul>
<pre class="r"><code>if(!require(devtools)) install.packages("devtools")
devtools::install_github("kassambara/factoextra")</code></pre>
<ul>
<li>Load factoextra as follow :</li>
</ul>
<pre class="r"><code>library("factoextra")</code></pre>
</div>
</div>
<div id="main-r-functions" class="section level2">
<h2>Main R functions</h2>
<div id="main-functions-in-factominer" class="section level3">
<h3>Main functions in FactoMineR</h3>
<p>Functions for computing principal component methods and clustering:</p>
<table>
<thead>
<tr class="header">
<th>Functions</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><code>PCA</code></td>
<td>Principal component analysis.</td>
</tr>
<tr class="even">
<td><code>CA</code></td>
<td>Correspondence analysis.</td>
</tr>
<tr class="odd">
<td><code>MCA</code></td>
<td>Multiple correspondence analysis.</td>
</tr>
<tr class="even">
<td><code>FAMD</code></td>
<td>Factor analysis of mixed data.</td>
</tr>
<tr class="odd">
<td><code>MFA</code></td>
<td>Multiple factor analysis.</td>
</tr>
<tr class="even">
<td><code>HCPC</code></td>
<td>Hierarchical clustering on principal components.</td>
</tr>
<tr class="odd">
<td><code>dimdesc</code></td>
<td>Dimension description.</td>
</tr>
</tbody>
</table>
</div>
<div id="main-functions-in-factoextra" class="section level3">
<h3>Main functions in factoextra</h3>
<p>factoextra functions covered in this book are listed in the table below. See the online documentation (<a href="https://www.sthda.com/english/rpkgs/factoextra" class="uri">https://www.sthda.com/english/rpkgs/factoextra</a>) for a complete list.</p>
<ul>
<li>Visualizing principal component method outputs</li>
</ul>
<table>
<thead>
<tr class="header">
<th>Functions</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><code>fviz_eig (or fviz_eigenvalue)</code></td>
<td>Visualize eigenvalues.</td>
</tr>
<tr class="even">
<td><code>fviz_pca</code></td>
<td>Graph of PCA results.</td>
</tr>
<tr class="odd">
<td><code>fviz_ca</code></td>
<td>Graph of CA results.</td>
</tr>
<tr class="even">
<td><code>fviz_mca</code></td>
<td>Graph of MCA results.</td>
</tr>
<tr class="odd">
<td><code>fviz_mfa</code></td>
<td>Graph of MFA results.</td>
</tr>
<tr class="even">
<td><code>fviz_famd</code></td>
<td>Graph of FAMD results.</td>
</tr>
<tr class="odd">
<td><code>fviz_hmfa</code></td>
<td>Graph of HMFA results.</td>
</tr>
<tr class="even">
<td><code>fviz_ellipses</code></td>
<td>Plot ellipses around groups.</td>
</tr>
<tr class="odd">
<td><code>fviz_cos2</code></td>
<td>Visualize element cos2.<a href="#fn1" class="footnoteRef" id="fnref1"><sup>1</sup></a></td>
</tr>
<tr class="even">
<td><code>fviz_contrib</code></td>
<td>Visualize element contributions.<a href="#fn2" class="footnoteRef" id="fnref2"><sup>2</sup></a></td>
</tr>
</tbody>
</table>
<ul>
<li>Extracting data from principal component method outputs. The following functions extract all the results (coordinates, squared cosine, contributions) for the active individuals/variables from the analysis outputs.</li>
</ul>
<table>
<thead>
<tr class="header">
<th>Functions</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><code>get_eigenvalue</code></td>
<td>Access to the dimension eigenvalues.</td>
</tr>
<tr class="even">
<td><code>get_pca</code></td>
<td>Access to PCA outputs.</td>
</tr>
<tr class="odd">
<td><code>get_ca</code></td>
<td>Access to CA outputs.</td>
</tr>
<tr class="even">
<td><code>get_mca</code></td>
<td>Access to MCA outputs.</td>
</tr>
<tr class="odd">
<td><code>get_mfa</code></td>
<td>Access to MFA outputs.</td>
</tr>
<tr class="even">
<td><code>get_famd</code></td>
<td>Access to MFA outputs.</td>
</tr>
<tr class="odd">
<td><code>get_hmfa</code></td>
<td>Access to HMFA outputs.</td>
</tr>
<tr class="even">
<td><code>facto_summarize</code></td>
<td>Summarize the analysis.</td>
</tr>
</tbody>
</table>
<ul>
<li>Clustering analysis and visualization</li>
</ul>
<table>
<thead>
<tr class="header">
<th>Functions</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><code>fviz_dend</code></td>
<td>Enhanced Visualization of Dendrogram.</td>
</tr>
<tr class="even">
<td><code>fviz_cluster</code></td>
<td>Visualize Clustering Results.</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="references" class="section level2 unnumbered">
<h2>References</h2>
<div id="refs" class="references">
<div id="ref-R-FactoMineR">
<p>Husson, Francois, Julie Josse, Sebastien Le, and Jeremy Mazet. 2017. <em>FactoMineR: Multivariate Exploratory Data Analysis and Data Mining</em>. <a href="https://CRAN.R-project.org/package=FactoMineR" class="uri">https://CRAN.R-project.org/package=FactoMineR</a>.</p>
</div>
<div id="ref-R-factoextra">
<p>Kassambara, Alboukadel, and Fabian Mundt. 2017. <em>Factoextra: Extract and Visualize the Results of Multivariate Data Analyses</em>. <a href="https://www.sthda.com/english/rpkgs/factoextra" class="uri">https://www.sthda.com/english/rpkgs/factoextra</a>.</p>
</div>
</div>
</div>
<div class="footnotes">
<hr />
<ol>
<li id="fn1"><p>Cos2: quality of representation of the row/column variables on the principal component maps.<a href="#fnref1">↩</a></p></li>
<li id="fn2"><p>This is the contribution of row/column elements to the definition of the principal components.<a href="#fnref2">↩</a></p></li>
</ol>
</div>


</div><!--end rdoc-->


<!-- END HTML -->]]></description>
			<pubDate>Mon, 16 Oct 2017 22:04:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[Multidimensional Scaling Essentials: Algorithms and R Code]]></title>
			<link>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/122-multidimensional-scaling-essentials-algorithms-and-r-code/</link>
			<guid>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/122-multidimensional-scaling-essentials-algorithms-and-r-code/</guid>
			<description><![CDATA[<!-- START HTML -->

  <div id="rdoc">





<p><strong>Multidimensional scaling</strong> (<strong>MDS</strong>) is a multivariate data analysis approach that is used to visualize the similarity/dissimilarity between samples by plotting points in two dimensional plots.</p>
<p>MDS returns an optimal solution to represent the data in a lower-dimensional space, where the number of dimensions k is pre-specified by the analyst. For example, choosing k = 2 optimizes the object locations for a two-dimensional scatter plot.</p>
<p>An MDS algorithm takes as an input data the <a href="https://www.sthda.com/english/articles/26-clustering-basics/86-clustering-distance-measures-essentials/">dissimilarity matrix</a>, representing the distances between pairs of objects.</p>
<p>The input data for MDS is a dissimilarity matrix representing the distances between pairs of objects.</p>
<div class="block">
<p>
This article describes MDS algorithms and provides <em>R</em> code to compute MDS.
</p>
</div>
<p>Contents:</p>
<div id="TOC">
<ul>
<li><a href="#types-of-mds-algorithms">Types of MDS algorithms</a></li>
<li><a href="#compute-mds-in-r">Compute MDS in R</a><ul>
<li><a href="#r-functions">R functions</a></li>
<li><a href="#demo-data">Demo data</a></li>
<li><a href="#classical-mds">Classical MDS</a></li>
<li><a href="#non-metric-mds">Non-metric MDS</a></li>
</ul></li>
<li><a href="#visualizing-a-correlation-matrix-using-multidimensional-scaling">Visualizing a correlation matrix using Multidimensional Scaling</a></li>
<li><a href="#comparing-mds-and-pca">Comparing MDS and PCA</a></li>
<li><a href="#see-also">See also</a></li>
</ul>
</div>
<div id="types-of-mds-algorithms" class="section level2">
<h2>Types of MDS algorithms</h2>
<p>There are different types of MDS algorithms, including</p>
<ol style="list-style-type: decimal">
<li><strong>Classical multidimensional scaling</strong></li>
</ol>
<p>Preserves the original distance metric, between points, as well as possible. That is the fitted distances on the MDS map and the original distances are in the same metric. Classic MDS belongs to the so-called metric multidimensional scaling category.</p>
<p>It’s also known as <strong>principal coordinates analysis</strong>. It’s suitable for quantitative data.</p>
<ol start="2" style="list-style-type: decimal">
<li><strong>Non-metric multidimensional scaling</strong></li>
</ol>
<p>It’s also known as <strong>ordinal MDS</strong>. Here, it’s not the metric of a distance value that is important or meaningful, but its value in relation to the distances between other pairs of objects.</p>
<p>Ordinal MDS constructs fitted distances that are in the same rank order as the original distance. For example, if the distance of apart objects 1 and 5 rank fifth in the original distance data, then they should also rank fifth in the MDS configuration.</p>
<p>It’s suitable for qualitative data.</p>
</div>
<div id="compute-mds-in-r" class="section level2">
<h2>Compute MDS in R</h2>
<div id="r-functions" class="section level3">
<h3>R functions</h3>
<ul>
<li><code>cmdscale()</code> [stats package]: Compute classical (metric) multidimensional scaling.</li>
<li><code>isoMDS()</code> [MASS package]: Compute Kruskal’s non-metric multidimensional scaling (one form of non-metric MDS).</li>
<li><code>sammon()</code> [MASS package]: Compute sammon’s non-linear mapping (one form of non-metric MDS).</li>
</ul>
<p>All these functions take a distance object as the main argument and k is the desired number of dimensions in the scaled output. By default, they return two dimension solutions, but we can change that through the parameter k which defaults to 2.</p>
</div>
<div id="demo-data" class="section level3">
<h3>Demo data</h3>
<p><code>swiss</code> data that contains fertility and socio-economic data on 47 French speaking provinces in Switzerland.</p>
<pre class="r"><code>data("swiss")
head(swiss)</code></pre>
<pre><code>##              Fertility Agriculture Examination Education Catholic
## Courtelary        80.2        17.0          15        12     9.96
## Delemont          83.1        45.1           6         9    84.84
## Franches-Mnt      92.5        39.7           5         5    93.40
## Moutier           85.8        36.5          12         7    33.77
## Neuveville        76.9        43.5          17        15     5.16
## Porrentruy        76.1        35.3           9         7    90.57
##              Infant.Mortality
## Courtelary               22.2
## Delemont                 22.2
## Franches-Mnt             20.2
## Moutier                  20.3
## Neuveville               20.6
## Porrentruy               26.6</code></pre>
</div>
<div id="classical-mds" class="section level3">
<h3>Classical MDS</h3>
<pre class="r"><code># Load required packages
library(magrittr)
library(dplyr)
library(ggpubr)

# Cmpute MDS
mds <- swiss %>%
  dist() %>%          
  cmdscale() %>%
  as_tibble()
colnames(mds) <- c("Dim.1", "Dim.2")

# Plot MDS
ggscatter(mds, x = "Dim.1", y = "Dim.2", 
          label = rownames(swiss),
          size = 1,
          repel = TRUE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/017-multidimensional-scaling-classical-mds-1.png" width="576" /></p>
<p>Create 3 groups using k-means clustering. Color points by groups</p>
<pre class="r"><code># K-means clustering
clust <- kmeans(mds, 3)$cluster %>%
  as.factor()

mds <- mds %>%
  mutate(groups = clust)

# Plot and color by groups
ggscatter(mds, x = "Dim.1", y = "Dim.2", 
          label = rownames(swiss),
          color = "groups",
          palette = "jco",
          size = 1, 
          ellipse = TRUE,
          ellipse.type = "convex",
          repel = TRUE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/017-multidimensional-scaling-mds-kmeans-group-color-1.png" width="576" /></p>
</div>
<div id="non-metric-mds" class="section level3">
<h3>Non-metric MDS</h3>
<ul>
<li>Load general packages:</li>
</ul>
<pre class="r"><code>library(magrittr)
library(dplyr)
library(ggpubr)</code></pre>
<ul>
<li>Kruskal’s non-metric multidimensional scaling</li>
</ul>
<pre class="r"><code># Cmpute MDS
library(MASS)
mds <- swiss %>%
  dist() %>%          
  isoMDS() %>%
  .$points %>%
  as_tibble()
colnames(mds) <- c("Dim.1", "Dim.2")

# Plot MDS
ggscatter(mds, x = "Dim.1", y = "Dim.2", 
          label = rownames(swiss),
          size = 1,
          repel = TRUE)</code></pre>
<ul>
<li>Sammon’s non-linear mapping:</li>
</ul>
<pre class="r"><code># Cmpute MDS
library(MASS)
mds <- swiss %>%
  dist() %>%          
  sammon() %>%
  .$points %>%
  as_tibble()
colnames(mds) <- c("Dim.1", "Dim.2")

# Plot MDS
ggscatter(mds, x = "Dim.1", y = "Dim.2", 
          label = rownames(swiss),
          size = 1,
          repel = TRUE)</code></pre>
</div>
</div>
<div id="visualizing-a-correlation-matrix-using-multidimensional-scaling" class="section level2">
<h2>Visualizing a correlation matrix using Multidimensional Scaling</h2>
<p>MDS can be also used to reveal a hidden pattern in a correlation matrix.</p>
<p>Correlation actually measures similarity, but it is easy to transform it to a measure of dissimilarity. Distance between objects can be calculated as <code>1 - res.cor</code>.</p>
<pre class="r"><code>res.cor <- cor(mtcars, method = "spearman")

mds.cor <- (1 - res.cor) %>%
  cmdscale() %>%
  as_tibble()

colnames(mds.cor) <- c("Dim.1", "Dim.2")
ggscatter(mds.cor, x = "Dim.1", y = "Dim.2", 
          size = 1,
          label = colnames(res.cor),
          repel = TRUE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/017-multidimensional-scaling-correlation-matrix-1.png" width="384" /></p>
<p>Positive correlated objects are close together on the same side of the plot.</p>
</div>
<div id="comparing-mds-and-pca" class="section level2">
<h2>Comparing MDS and PCA</h2>
<p>Mathematically and conceptually, there are close correspondences between MDS and other methods used to reduce the dimensionality of complex data, such as Principal components analysis (PCA) and factor analysis.</p>
<p>PCA is more focused on the dimensions themselves, and seek to maximize explained variance, whereas MDS is more focused on relations among the scaled objects.</p>
<p>MDS projects n-dimensional data points to a (commonly) 2-dimensional space such that similar objects in the n-dimensional space will be close together on the two dimensional plot, while PCA projects a multidimensional space to the directions of maximum variability using covariance/correlation matrix to analyze the correlation between data points and variables.</p>
</div>
<div id="see-also" class="section level2">
<h2>See also</h2>
<p><a href="https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/112-pca-principal-component-analysis-essentials/">PCA - Principal Component Analysis Essentials</a></p>
</div>


</div><!--end rdoc-->


<!-- END HTML -->]]></description>
			<pubDate>Mon, 16 Oct 2017 14:56:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[Correspondence Analysis in R: Million Ways]]></title>
			<link>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/121-correspondence-analysis-in-r-million-ways/</link>
			<guid>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/121-correspondence-analysis-in-r-million-ways/</guid>
			<description><![CDATA[<!-- START HTML -->

  <div id="rdoc">
<p>This article describes the multiple ways to compute <strong>correspondence analysis in R</strong> (<strong>CA</strong>). Recall that, correspondence analysis is used to study the association between two categorical variables by analyzing the contingency table formed by these two variables.</p>
<p>There are many R functions/packages for computing CA. No matter what functions you decide to use, in the list hereafter, the factoextra package can handle the output.</p>
<p><img src="https://www.sthda.com/english/sthda-upload/images/principal-component-methods/correspondence-analysis-in-r-million-ways.png" alt="Correspondence Analysis in R: A Million Ways" /></p>
<p>Contents:</p>
<div id="TOC">
<ul>
<li><a href="#data-format">Data format</a></li>
<li><a href="#compute">Compute</a></li>
<li><a href="#visualize">Visualize</a></li>
<li><a href="#results">Results</a></li>
<li><a href="#read-more">Read more</a></li>
</ul>
</div>
<br/>
<div class = "small-block content-privileged-friends pca-book">
  <p>Related Book:</p>
        <a href = "https://www.sthda.com/english/web/5-bookadvisor/50-practical-guide-to-principal-component-methods-in-r/">
          <img src = "https://www.sthda.com/english/sthda-upload/images/principal-component-methods/principal-component-methods-cover-200px.png" /><br/>
      Practical Guide to Principal Component Methods in R
      </a>
</div>
<div class="spacer"></div>


<div id="data-format" class="section level2">
<h2>Data format</h2>
<ul>
<li>Demo data: <code>housetasks</code> [in factoextra package]</li>
<li>Data contents: housetasks repartition in the couple.
<ul>
<li>rows are the different tasks</li>
<li>values are the frequencies of the tasks done by the i) wife only, ii) alternatively, iii) husband only, iv) jointly.</li>
</ul></li>
<li>Data illustration:</li>
</ul>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/015-correspondence-analysis-in-r-unnamed-chunk-2-1.png" width="384" /></p>
<p>Load the data:</p>
<pre class="r"><code>library(factoextra)
data(housetasks)
# head(housetasks)</code></pre>
</div>
<div id="compute" class="section level2">
<h2>Compute</h2>
<ol style="list-style-type: decimal">
<li>Using <code>CA()</code> [FactoMineR]</li>
</ol>
<pre class="r"><code>library(FactoMineR)
res.ca <- CA(housetasks, graph = FALSE)</code></pre>
<ol start="2" style="list-style-type: decimal">
<li>Using <code>dudi.coa()</code> [ade4]</li>
</ol>
<pre class="r"><code>library("ade4")
res.ca <- dudi.coa(housetasks, scannf = FALSE, nf = 5)</code></pre>
<ol start="3" style="list-style-type: decimal">
<li>Using <code>ca()</code> [ca]</li>
</ol>
<pre class="r"><code>library(ca)
res.ca <- ca(housetasks)</code></pre>
<ol start="4" style="list-style-type: decimal">
<li>Using <code>corresp()</code> [MASS]</li>
</ol>
<pre class="r"><code>library(MASS)
res.ca <- corresp(housetasks, nf = 3)</code></pre>
<ol start="5" style="list-style-type: decimal">
<li>Using <code>epCA()</code> [ExPosition]</li>
</ol>
<pre class="r"><code>library("ExPosition")
res.ca <- epCA(housetasks, graph = FALSE)</code></pre>
</div>
<div id="visualize" class="section level2">
<h2>Visualize</h2>
<ul>
<li>Required packages</li>
</ul>
<pre class="r"><code>library(factoextra)</code></pre>
<ul>
<li>Scree plot</li>
</ul>
<pre class="r"><code>fviz_eig(res.ca) </code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/015-correspondence-analysis-in-r-scree-plot-1.png" width="384" /></p>
<ul>
<li>Biplot of rows and columns:</li>
</ul>
<pre class="r"><code>fviz_ca_biplot(res.ca, repel = TRUE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/015-correspondence-analysis-in-r-biplot-of-rows-and-columns-1.png" width="576" /></p>
</div>
<div id="results" class="section level2">
<h2>Results</h2>
<p>You can access to the results as follow:</p>
<pre class="r"><code>library(factoextra)

# Eigenvalues
eig.val <- get_eigenvalue(res.ca)
eig.val

# Results for row variables
res.row <- get_ca_row(res.ca)
res.row$coord          # Coordinates
res.row$contrib        # Contributions to the PCs
res.row$cos2           # Quality of representation 

# Results for column variables
res.col <- get_ca_col(res.ca)
res.col$coord          # Coordinates
res.col$contrib        # Contributions to the PCs
res.col$cos2           # Quality of representation </code></pre>
</div>
<div id="read-more" class="section level2">
<h2>Read more</h2>
<ul>
<li><a href="https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/113-ca-correspondence-analysis-in-r-essentials/">Correspondence Analysis Essentials</a>: Comprehensive guide to analyze, visualize and interpret correspondence analysis</li>
<li><a href="https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/120-correspondence-analysis-theory-and-practice/">Correspondence Analysis: Theory and Practice</a></li>
</ul>
</div>


</div><!--end rdoc-->


<!-- END HTML -->]]></description>
			<pubDate>Sun, 08 Oct 2017 01:34:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[Correspondence Analysis: Theory and Practice]]></title>
			<link>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/120-correspondence-analysis-theory-and-practice/</link>
			<guid>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/120-correspondence-analysis-theory-and-practice/</guid>
			<description><![CDATA[<!-- START HTML -->

  <div id="rdoc">





<p>This article presents the <strong>theory</strong> and the mathematical procedures behind <strong>correspondence Analysis</strong>. We write all the formula in a very simple format so that beginners can understand the methods.</p>
<p><img src="https://www.sthda.com/english/sthda-upload/images/principal-component-methods/correspondence-analysis-theory-and-practice.png" alt="Correspondence Analysis: Theory and Practice" /></p>
<p>Contents:</p>
<div id="TOC">
<ul>
<li><a href="#required-packages">Required packages</a></li>
<li><a href="#data-format">Data format</a></li>
<li><a href="#visualize-a-contingency-table">Visualize a contingency table</a></li>
<li><a href="#key-terms">Key terms</a></li>
<li><a href="#row-variables">Row variables</a><ul>
<li><a href="#row-profiles">Row profiles</a></li>
<li><a href="#distance-or-similarity-between-row-profiles">Distance (or similarity) between row profiles</a></li>
<li><a href="#squared-distance-between-each-row-profile-and-the-average-row-profile">Squared distance between each row profile and the average row profile</a></li>
<li><a href="#distance-matrix">Distance matrix</a></li>
<li><a href="#row-mass-and-inertia">Row mass and inertia</a></li>
<li><a href="#row-summary">Row summary</a></li>
</ul></li>
<li><a href="#column-variables">Column variables</a><ul>
<li><a href="#column-profiles">Column profiles</a></li>
<li><a href="#distance-similarity-between-column-profiles">Distance (similarity) between column profiles</a></li>
<li><a href="#squared-distance-between-each-column-profile-and-the-average-column-profile">Squared distance between each column profile and the average column profile</a></li>
<li><a href="#distance-matrix-1">Distance matrix</a></li>
<li><a href="#column-mass-and-inertia">column mass and inertia</a></li>
<li><a href="#column-summary">Column summary</a></li>
</ul></li>
<li><a href="#association-between-row-and-column-variables">Association between row and column variables</a><ul>
<li><a href="#chi-square-test">Chi-square test</a></li>
<li><a href="#total-inertia">Total inertia</a></li>
<li><a href="#mosaic-plot">Mosaic plot</a></li>
<li><a href="#g-test-likelihood-ratio-test">G-test: Likelihood ratio test</a></li>
<li><a href="#interpret-the-association-between-rows-and-columns">Interpret the association between rows and columns</a></li>
</ul></li>
<li><a href="#correspondence-analysis">Correspondence analysis</a></li>
<li><a href="#ca---singular-value-decomposition-of-the-standardized-residuals">CA - Singular value decomposition of the standardized residuals</a><ul>
<li><a href="#eigenvalues-and-screeplot">Eigenvalues and screeplot</a></li>
<li><a href="#row-coordinates">Row coordinates</a></li>
<li><a href="#column-coordinates">Column coordinates</a></li>
<li><a href="#biplot-of-rows-and-columns-to-view-the-association">Biplot of rows and columns to view the association</a></li>
<li><a href="#diagnostic">Diagnostic</a></li>
<li><a href="#contribution-of-rows-and-columns">Contribution of rows and columns</a></li>
<li><a href="#quality-of-the-representation">Quality of the representation</a></li>
<li><a href="#cos2-of-columns">Cos2 of columns</a></li>
<li><a href="#supplementary-rowscolumns">Supplementary rows/columns</a></li>
</ul></li>
<li><a href="#practice-in-r">Practice in R</a></li>
<li><a href="#references">References</a></li>
</ul>
</div>
<br/>
<div class = "small-block content-privileged-friends pca-book">
  <p>Related Book:</p>
        <a href = "https://www.sthda.com/english/web/5-bookadvisor/50-practical-guide-to-principal-component-methods-in-r/">
          <img src = "https://www.sthda.com/english/sthda-upload/images/principal-component-methods/principal-component-methods-cover-200px.png" /><br/>
      Practical Guide to Principal Component Methods in R
      </a>
</div>
<div class="spacer"></div>


<div id="required-packages" class="section level2">
<h2>Required packages</h2>
<ul>
<li><code>FactoMineR</code> for computing CA</li>
<li><code>factoextra</code> for visualizing the results</li>
</ul>
<p>Install:</p>
<pre class="r"><code>install.packages("FactoMineR")
install.packages("factoextra")</code></pre>
<p>Load:</p>
<pre class="r"><code>library("FactoMineR")
library("factoextra")</code></pre>
</div>
<div id="data-format" class="section level2">
<h2>Data format</h2>
<ul>
<li>Demo data: <code>housetasks</code> [in factoextra package]</li>
<li>Data contents: housetasks repartition in the couple.
<ul>
<li>rows are the different tasks</li>
<li>values are the frequencies of the tasks done by the i) wife only, ii) alternatively, iii) husband only, iv) jointly.</li>
</ul></li>
<li>Data illustration:</li>
</ul>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-unnamed-chunk-4-1.png" width="384" /></p>
<p>Load the data:</p>
<pre class="r"><code>library(factoextra)
data(housetasks)
# head(housetasks)</code></pre>
<p>As the above contingency table is not very large, with a quick visual examination it can be seen that:</p>
<ul>
<li>The house tasks Laundry, Main_Meal and Dinner are dominant in the column Wife</li>
<li>Repairs are dominant in the column Husband</li>
<li>Holidays are dominant in the column Jointly</li>
</ul>
</div>
<div id="visualize-a-contingency-table" class="section level2">
<h2>Visualize a contingency table</h2>
<p>To easily interpret the contingency table, a graphical matrix can be drawn using the function <code>balloonplot</code>() [gplots package]. In this graph, each cell contains a dot whose size reflects the relative magnitude of the value it contains.</p>
<pre class="r"><code>library("gplots")
# 1. convert the data as a table
dt <- as.table(as.matrix(housetasks))
# 2. Graph
balloonplot(t(dt), main ="housetasks", xlab ="", ylab="",
            label = FALSE, show.margins = FALSE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-graph-contingency-table-1.png" width="480" /></p>
<div class="warning">
<p>
For a very large contingency table, the visual interpretation would be very hard. Other methods are required such as correspondence analysis.
</p>
</div>
</div>
<div id="key-terms" class="section level2">
<h2>Key terms</h2>
<ul>
<li><em>Row margins</em>: Row sums (<code>row.sum</code>)</li>
<li><em>Column margins</em>: Column sums (<code>col.sum</code>)</li>
<li><em>grand total</em>: Total sum of all values in the contingency table.</li>
</ul>
<pre class="r"><code># Row margins
row.sum <- apply(housetasks, 1, sum)
head(row.sum)
# Column margins
col.sum <- apply(housetasks, 2, sum)
head(col.sum)
# grand total
n <- sum(housetasks)</code></pre>
<p>The contingency table with row and column margins are shown below:</p>
<table style="margin-left:0px;margin-right:auto;border-collapse:collapse;">
<thead>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;font-weight:bold;color:rgba(0, 0, 0, 1);">Wife</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;font-weight:bold;color:rgba(0, 0, 0, 1);">Alternating</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;font-weight:bold;color:rgba(0, 0, 0, 1);">Husband</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;font-weight:bold;color:rgba(0, 0, 0, 1);">Jointly</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;font-weight:bold;color:rgba(0, 0, 0, 1);">TOTAL</span>
</p>
</td>
</tr>
</thead>
<tbody>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Laundry</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">156</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 14</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 2</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 4</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 176</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Main_meal</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">124</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 20</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 5</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 4</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 153</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Dinner</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 77</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 11</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 7</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 13</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 108</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Breakfeast</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 82</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 36</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 15</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 7</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 140</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Tidying</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 53</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 11</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 1</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 57</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 122</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Dishes</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 32</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 24</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 4</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 53</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 113</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Shopping</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 33</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 23</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 9</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 55</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 120</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Official</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 12</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 46</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 23</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 15</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 96</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Driving</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 10</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 51</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 75</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 3</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 139</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Finances</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 13</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 13</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 21</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 66</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 113</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Insurance</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 8</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 1</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 53</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 77</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 139</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Repairs</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 0</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 3</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">160</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 2</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 165</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Holidays</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 0</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 1</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 6</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">153</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);"> 160</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(173, 216, 230, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">TOTAL</span>
</p>
</td>
<td style="background-color:rgba(173, 216, 230, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">600</span>
</p>
</td>
<td style="background-color:rgba(173, 216, 230, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">254</span>
</p>
</td>
<td style="background-color:rgba(173, 216, 230, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">381</span>
</p>
</td>
<td style="background-color:rgba(173, 216, 230, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">509</span>
</p>
</td>
<td style="background-color:rgba(255, 192, 203, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1744</span>
</p>
</td>
</tr>
</tbody>
<tfoot>
</tfoot>
</table>
<ul>
<li>Row margins: light gray</li>
<li>Column margins: light blue</li>
<li>The grand total (the total of all values in the table): pink</li>
</ul>
</div>
<div id="row-variables" class="section level2">
<h2>Row variables</h2>
<p>To compare rows, we can analyse their profiles in order to identify similar row variables.</p>
<div id="row-profiles" class="section level3">
<h3>Row profiles</h3>
<p>The profile of a given row is calculated by taking each row point and dividing by its margin (i.e, the sum of all row points). The formula is:</p>
<p><span class="math display">\[
row.profile = \frac{row}{row.sum}
\]</span></p>
<p>For example the profile of the row point Laundry/wife is <code>P = 156/176 = 88.6%</code>.</p>
<p>The R code below can be used to compute row profiles:</p>
<pre class="r"><code>row.profile <- housetasks/row.sum
# head(row.profile)</code></pre>
<table style="margin-left:0px;margin-right:auto;border-collapse:collapse;">
<thead>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;font-weight:bold;color:rgba(0, 0, 0, 1);">Wife</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;font-weight:bold;color:rgba(0, 0, 0, 1);">Alternating</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;font-weight:bold;color:rgba(0, 0, 0, 1);">Husband</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;font-weight:bold;color:rgba(0, 0, 0, 1);">Jointly</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;font-weight:bold;color:rgba(0, 0, 0, 1);">TOTAL</span>
</p>
</td>
</tr>
</thead>
<tbody>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Laundry</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.8864</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.07955</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0114</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0227</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Main_meal</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.8105</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.13072</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0327</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0261</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Dinner</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.7130</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.10185</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0648</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.1204</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Breakfeast</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.5857</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.25714</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.1071</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0500</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Tidying</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.4344</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.09016</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0082</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.4672</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Dishes</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.2832</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.21239</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0354</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.4690</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Shopping</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.2750</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.19167</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0750</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.4583</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Official</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.1250</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.47917</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.2396</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.1562</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Driving</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0719</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.36691</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.5396</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0216</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Finances</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.1150</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.11504</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.1858</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.5841</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Insurance</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0576</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.00719</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.3813</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.5540</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Repairs</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0000</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.01818</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.9697</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0121</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Holidays</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0000</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.00625</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0375</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.9563</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(173, 216, 230, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">TOTAL</span>
</p>
</td>
<td style="background-color:rgba(173, 216, 230, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.3440</span>
</p>
</td>
<td style="background-color:rgba(173, 216, 230, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.14564</span>
</p>
</td>
<td style="background-color:rgba(173, 216, 230, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.2185</span>
</p>
</td>
<td style="background-color:rgba(173, 216, 230, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.2919</span>
</p>
</td>
<td style="background-color:rgba(255, 192, 203, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1</span>
</p>
</td>
</tr>
</tbody>
<tfoot>
</tfoot>
</table>
<div class="warning">
<p>
In the table above, the row TOTAL (in light blue) is called the <em>average row profile</em> (or <em>marginal profile of columns</em> or <em>column margin</em>)
</p>
</div>
<p>The <em>average row profile</em> is computed as follow:</p>
<p><span class="math display">\[
average.rp = \frac{column.sum}{grand.total}
\]</span></p>
<p>For example, the average row profile is : (600/1744, 254/1744, 381/1744, 509/1744). It can be computed in R as follow:</p>
<pre class="r"><code># Column sums
col.sum <- apply(housetasks, 2, sum)
# average row profile = Column sums / grand total
average.rp <- col.sum/n 
average.rp</code></pre>
<pre><code>##        Wife Alternating     Husband     Jointly 
##       0.344       0.146       0.218       0.292</code></pre>
</div>
<div id="distance-or-similarity-between-row-profiles" class="section level3">
<h3>Distance (or similarity) between row profiles</h3>
<p>If we want to compare 2 rows (row1 and row2), we need to compute the squared distance between their profiles as follow:</p>
<p><span class="math display">\[ 
d^2(row_1, row_2) = \sum{\frac{(row.profile_1 - row.profile_2)^2}{average.profile}}
\]</span></p>
<div class="warning">
<p>
This distance is called <strong>Chi-square distance</strong>
</p>
</div>
<p>For example the distance between the rows <em>Laundry</em> and <em>Main_meal</em> are:</p>
<p><span class="math display">\[
d^2(Laundry, Main\_meal) = \frac{(0.886-0.810)^2}{0.344} + \frac{(0.0795-0.131)^2}{0.146} + ... = 0.036
\]</span></p>
<p>The distance between Laundry and Main_meal can be calculated as follow in R:</p>
<pre class="r"><code># Laundry and Main_meal profiles
laundry.p <- row.profile["Laundry",]
main_meal.p <- row.profile["Main_meal",]
# Distance between Laundry and Main_meal
d2 <- sum(((laundry.p - main_meal.p)^2) / average.rp)
d2</code></pre>
<pre><code>## [1] 0.0368</code></pre>
<p>The distance between <em>Laundry</em> and <em>Driving</em> is:</p>
<pre class="r"><code># Driving profile
driving.p <- row.profile["Driving",]
# Distance between Laundry and Driving
d2 <- sum(((laundry.p - driving.p)^2) / average.rp)
d2</code></pre>
<pre><code>## [1] 3.77</code></pre>
<div class="success">
<p>
Note that, the rows Laundry and Main_meal are very close (d2 ~ 0.036, similar profiles) compared to the rows Laundry and Driving (d2 ~ 3.77)
</p>
</div>
<div class="warning">
<p>
You can also compute the squared distance between each row profile and the average row profile in order to view rows that are the most similar or different to the average row.
</p>
</div>
</div>
<div id="squared-distance-between-each-row-profile-and-the-average-row-profile" class="section level3">
<h3>Squared distance between each row profile and the average row profile</h3>
<p><span class="math display">\[ 
d^2(row_i, average.profile) = \sum{\frac{(row.profile_i - average.profile)^2}{average.profile}}
\]</span></p>
<p>The R code below computes the distance from the average profile for all the row variables:</p>
<pre class="r"><code>d2.row <- apply(row.profile, 1, 
        function(row.p, av.p){sum(((row.p - av.p)^2)/av.p)}, 
        average.rp)
as.matrix(round(d2.row,3))</code></pre>
<pre><code>##             [,1]
## Laundry    1.329
## Main_meal  1.034
## Dinner     0.618
## Breakfeast 0.512
## Tidying    0.353
## Dishes     0.302
## Shopping   0.218
## Official   0.968
## Driving    1.274
## Finances   0.456
## Insurance  0.727
## Repairs    3.307
## Holidays   2.140</code></pre>
<div class="success">
<p>
The rows Repairs, Holidays, Laundry and Driving have the most different profiles from the average profile.
</p>
</div>
</div>
<div id="distance-matrix" class="section level3">
<h3>Distance matrix</h3>
<p>In this section the squared distance is computed between each row profile and the other rows in the contingency table.</p>
<p>The result is a distance matrix (a kind of correlation or dissimilarity matrix).</p>
<p>The custom R function below is used to compute the distance matrix:</p>
<pre class="r"><code>## data: a data frame or matrix; 
## average.profile: average profile
dist.matrix <- function(data, average.profile){
   mat <- as.matrix(t(data))
    n <- ncol(mat)
    dist.mat<- matrix(NA, n, n)
    diag(dist.mat) <- 0
    for (i in 1:(n - 1)) {
        for (j in (i + 1):n) {
            d2 <- sum(((mat[, i] - mat[, j])^2) / average.profile)
            dist.mat[i, j] <- dist.mat[j, i] <- d2
        }
    }
  colnames(dist.mat) <- rownames(dist.mat) <- colnames(mat)
  dist.mat
}</code></pre>
<p>Compute and visualize the distance between row profiles. The package <code>corrplot</code> is required for the visualization. It can be installed as follow: <code>install.packages("corrplot")</code>.</p>
<pre class="r"><code># Distance matrix
dist.mat <- dist.matrix(row.profile, average.rp)
dist.mat <-round(dist.mat, 2)
# Visualize the matrix
library("corrplot")
corrplot(dist.mat, type="upper",  is.corr = FALSE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-visualize-row-profile-data-mining-1.png" width="518.4" /></p>
<div class="success">
<p>
The size of the circle is proportional to the magnitude of the distance between row profiles.
</p>
</div>
<div class="warning">
<p>
When the data contains many categories, correspondence analysis is very useful to visualize the similarity between items.
</p>
</div>
</div>
<div id="row-mass-and-inertia" class="section level3">
<h3>Row mass and inertia</h3>
<p>The Row mass (or <em>row weight</em>) is the total frequency of a given row. It’s calculated as follow:</p>
<p><span class="math display">\[
row.mass = \frac{row.sum}{grand.total}
\]</span></p>
<pre class="r"><code>row.sum <- apply(housetasks, 1, sum)
grand.total <- sum(housetasks)
row.mass <- row.sum/grand.total
head(row.mass)</code></pre>
<pre><code>##    Laundry  Main_meal     Dinner Breakfeast    Tidying     Dishes 
##     0.1009     0.0877     0.0619     0.0803     0.0700     0.0648</code></pre>
<p>The <em>row inertia</em> is calculated as the row mass multiplied by the squared distance between the row and the average row profile:</p>
<p><span class="math display">\[
row.inertia = row.mass * d^2(row)
\]</span></p>
<div class="warning">
<ul>
<li>
The inertia of a row (or a column) is the amount of information it contains.
</li>
<li>
The <em>total inertia</em> is the total information contained in the data table. It’s computed as the sum of rows inertia (or equivalently, as the sum of columns inertia)
</li>
</ul>
</div>
<pre class="r"><code># Row inertia
row.inertia <- row.mass * d2.row
head(row.inertia)</code></pre>
<pre><code>##    Laundry  Main_meal     Dinner Breakfeast    Tidying     Dishes 
##     0.1342     0.0907     0.0382     0.0411     0.0247     0.0196</code></pre>
<pre class="r"><code># Total inertia
sum(row.inertia)</code></pre>
<pre><code>## [1] 1.11</code></pre>
<div class="success">
<p>
The total inertia corresponds to the amount of the information the data contains.
</p>
</div>
</div>
<div id="row-summary" class="section level3">
<h3>Row summary</h3>
<p>The result for rows can be summarized as follow:</p>
<pre class="r"><code>row <- cbind.data.frame(d2 = d2.row, mass = row.mass, inertia = row.inertia)
round(row,3)</code></pre>
<pre><code>##               d2  mass inertia
## Laundry    1.329 0.101   0.134
## Main_meal  1.034 0.088   0.091
## Dinner     0.618 0.062   0.038
## Breakfeast 0.512 0.080   0.041
## Tidying    0.353 0.070   0.025
## Dishes     0.302 0.065   0.020
## Shopping   0.218 0.069   0.015
## Official   0.968 0.055   0.053
## Driving    1.274 0.080   0.102
## Finances   0.456 0.065   0.030
## Insurance  0.727 0.080   0.058
## Repairs    3.307 0.095   0.313
## Holidays   2.140 0.092   0.196</code></pre>
</div>
</div>
<div id="column-variables" class="section level2">
<h2>Column variables</h2>
<div id="column-profiles" class="section level3">
<h3>Column profiles</h3>
<p>These are calculated in the same way as the row profiles table.</p>
<p>The profile of a given column is computed as follow:</p>
<p><span class="math display">\[
col.profile = \frac{col}{col.sum}
\]</span></p>
<p>The R code below can be used to compute column profile:</p>
<pre class="r"><code>col.profile <- t(housetasks)/col.sum
col.profile <- as.data.frame(t(col.profile))
# head(col.profile)</code></pre>
<table style="margin-left:0px;margin-right:auto;border-collapse:collapse;">
<thead>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;font-weight:bold;color:rgba(0, 0, 0, 1);">Wife</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;font-weight:bold;color:rgba(0, 0, 0, 1);">Alternating</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;font-weight:bold;color:rgba(0, 0, 0, 1);">Husband</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;font-weight:bold;color:rgba(0, 0, 0, 1);">Jointly</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;font-weight:bold;color:rgba(0, 0, 0, 1);">TOTAL</span>
</p>
</td>
</tr>
</thead>
<tbody>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Laundry</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.2600</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.05512</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.00525</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.00786</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.1009</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Main_meal</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.2067</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.07874</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.01312</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.00786</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0877</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Dinner</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.1283</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.04331</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.01837</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.02554</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0619</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Breakfeast</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.1367</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.14173</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.03937</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.01375</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0803</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Tidying</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0883</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.04331</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.00262</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.11198</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0700</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Dishes</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0533</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.09449</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.01050</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.10413</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0648</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Shopping</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0550</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.09055</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.02362</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.10806</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0688</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Official</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0200</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.18110</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.06037</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.02947</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0550</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Driving</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0167</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.20079</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.19685</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.00589</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0797</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Finances</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0217</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.05118</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.05512</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.12967</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0648</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Insurance</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0133</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.00394</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.13911</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.15128</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0797</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Repairs</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0000</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.01181</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.41995</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.00393</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0946</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">Holidays</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0000</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.00394</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.01575</span>
</p>
</td>
<td style="background-color:rgba(255, 255, 255, 0);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.30059</span>
</p>
</td>
<td style="background-color:rgba(211, 211, 211, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">0.0917</span>
</p>
</td>
</tr>
<tr>
<td style="background-color:rgba(173, 216, 230, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">TOTAL</span>
</p>
</td>
<td style="background-color:rgba(173, 216, 230, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1.0000</span>
</p>
</td>
<td style="background-color:rgba(173, 216, 230, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1.00000</span>
</p>
</td>
<td style="background-color:rgba(173, 216, 230, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1.00000</span>
</p>
</td>
<td style="background-color:rgba(173, 216, 230, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1.00000</span>
</p>
</td>
<td style="background-color:rgba(255, 192, 203, 1);border-bottom-color:rgba(0, 0, 0, 1);border-bottom-style:solid;border-bottom-width:1px;border-top-color:rgba(0, 0, 0, 1);border-top-style:solid;border-top-width:1px;border-right-color:rgba(0, 0, 0, 1);border-right-style:solid;border-right-width:1px;border-left-color:rgba(0, 0, 0, 1);border-left-style:solid;border-left-width:1px;vertical-align:middle;padding-left:0pt;padding-right:0pt;padding-top:0pt;padding-bottom:0pt;">
<p style="text-align:left;padding-top:0pt;padding-bottom:0pt;padding-right:0pt;padding-left:0pt;margin-left:0pt;margin-right:0pt;margin-top:0pt;margin-bottom:0pt;">
<span style="font-size:11pt;font-family:Times New Roman;color:rgba(0, 0, 0, 1);">1.0000</span>
</p>
</td>
</tr>
</tbody>
<tfoot>
</tfoot>
</table>
<div class="warning">
<p>
In the table above, the column TOTAL is called the <em>average column profile</em> (or <em>marginale profile of rows</em>)
</p>
</div>
<p>The average column profile is calculated as follow:</p>
<p><span class="math display">\[
average.cp = row.sum/grand.total
\]</span></p>
<p>For example, the average column profile is : (176/1744, 153/1744, 108/1744, 140/1744, …). It can be computed in R as follow:</p>
<pre class="r"><code># Row sums
row.sum <- apply(housetasks, 1, sum)
# average column profile= row sums/grand total
average.cp <- row.sum/n 
head(average.cp)</code></pre>
<pre><code>##    Laundry  Main_meal     Dinner Breakfeast    Tidying     Dishes 
##     0.1009     0.0877     0.0619     0.0803     0.0700     0.0648</code></pre>
</div>
<div id="distance-similarity-between-column-profiles" class="section level3">
<h3>Distance (similarity) between column profiles</h3>
<p>If we want to compare columns, we need to compute the squared distance between their profiles as follow:</p>
<p><span class="math display">\[ 
d^2(col_1, col_2) = \sum{\frac{(col.profile_1 - col.profile_2)^2}{average.profile}}
\]</span></p>
<p>For example the distance between the columns Wife and Husband are:</p>
<p><span class="math display">\[
d^2(Wife, Husband) = \frac{(0.26-0.005)^2}{0.10} + \frac{(0.21-0.013)^2}{0.09} + ... + ... = 4.05
\]</span></p>
<p>The distance between Wife and Husband can be calculated as follow in R:</p>
<pre class="r"><code># Wife and Husband profiles
wife.p <- col.profile[, "Wife"]
husband.p <- col.profile[, "Husband"]
# Distance between Wife and Husband
d2 <- sum(((wife.p - husband.p)^2) / average.cp)
d2</code></pre>
<pre><code>## [1] 4.05</code></pre>
<div class="warning">
<p>
You can also compute the squared distance between each column profile and the average column profile
</p>
</div>
</div>
<div id="squared-distance-between-each-column-profile-and-the-average-column-profile" class="section level3">
<h3>Squared distance between each column profile and the average column profile</h3>
<p><span class="math display">\[ 
d^2(col_i, average.profile) = \sum{\frac{(col.profile_i - average.profile)^2}{average.profile}}
\]</span></p>
<p>The R code below computes the distance from the average profile for all the column variables</p>
<pre class="r"><code>d2.col <- apply(col.profile, 2, 
        function(col.p, av.p){sum(((col.p - av.p)^2)/av.p)}, 
        average.cp)
round(d2.col,3)</code></pre>
<pre><code>##        Wife Alternating     Husband     Jointly 
##       0.875       0.809       1.746       1.078</code></pre>
</div>
<div id="distance-matrix-1" class="section level3">
<h3>Distance matrix</h3>
<pre class="r"><code># Distance matrix
dist.mat <- dist.matrix(t(col.profile), average.cp)
dist.mat <-round(dist.mat, 2)
dist.mat</code></pre>
<pre><code>##             Wife Alternating Husband Jointly
## Wife        0.00        1.71    4.05    2.93
## Alternating 1.71        0.00    2.67    2.58
## Husband     4.05        2.67    0.00    3.70
## Jointly     2.93        2.58    3.70    0.00</code></pre>
<pre class="r"><code># Visualize the matrix
library("corrplot")
corrplot(dist.mat, type="upper", order="hclust", is.corr = FALSE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-visualize-column-profile-data-mining-1.png" width="518.4" /></p>
</div>
<div id="column-mass-and-inertia" class="section level3">
<h3>column mass and inertia</h3>
<p>The <em>column mass</em>(or column weight) is the total frequency of each column. It’s calculated as follow:</p>
<p><span class="math display">\[
col.mass = \frac{col.sum}{grand.total}
\]</span></p>
<pre class="r"><code>col.sum <- apply(housetasks, 2, sum)
grand.total <- sum(housetasks)
col.mass <- col.sum/grand.total
head(col.mass)</code></pre>
<pre><code>##        Wife Alternating     Husband     Jointly 
##       0.344       0.146       0.218       0.292</code></pre>
<p>The <em>column inertia</em> is calculated as the column mass multiplied by the squared distance between the column and the average column profile:</p>
<p><span class="math display">\[
col.inertia = col.mass * d^2(col)
\]</span></p>
<pre class="r"><code>col.inertia <- col.mass * d2.col
head(col.inertia)</code></pre>
<pre><code>##        Wife Alternating     Husband     Jointly 
##       0.301       0.118       0.381       0.315</code></pre>
<pre class="r"><code># total inertia
sum(col.inertia)</code></pre>
<pre><code>## [1] 1.11</code></pre>
<div class="success">
<p>
Recall that the total inertia corresponds to the amount of the information the data contains. Note that, the total inertia obtained using column profile is the same as the one obtained when analyzing row profile. That’s normal, because we are analyzing the same data with just a different angle of view.
</p>
</div>
</div>
<div id="column-summary" class="section level3">
<h3>Column summary</h3>
<p>The result for rows can be summarized as follow:</p>
<pre class="r"><code>col <- cbind.data.frame(d2 = d2.col, mass = col.mass, 
                        inertia = col.inertia)
round(col,3)</code></pre>
<pre><code>##                d2  mass inertia
## Wife        0.875 0.344   0.301
## Alternating 0.809 0.146   0.118
## Husband     1.746 0.218   0.381
## Jointly     1.078 0.292   0.315</code></pre>
</div>
</div>
<div id="association-between-row-and-column-variables" class="section level2">
<h2>Association between row and column variables</h2>
<p>When the contingency table is not very large (as above), it’s easy to visually inspect and interpret row and column profiles:</p>
<ul>
<li>It’s evident that, the housetasks - <em>Laundry, Main_Meal and Dinner</em> - are more frequently done by the “Wife”.

</li>
<li>Repairs and driving are dominantly done by the husband</li>
<li>Holidays are more frequently taken jointly</li>
</ul>
<p>Larger contingency table is complex to interpret visually and several methods are required to help to this process.</p>
<p>Another statistical method that can be applied to contingency table is the <strong>Chi-square test</strong> of independence.</p>
<div id="chi-square-test" class="section level3">
<h3>Chi-square test</h3>
<p><strong>Chi-square test</strong> issued to examine whether rows and columns of a contingency table are statistically significantly associated.</p>
<ul>
<li><strong>Null hypothesis (H0)</strong>: the row and the column variables of the contingency table are independent.</li>
<li><strong>Alternative hypothesis (H1)</strong>: row and column variables are dependent</li>
</ul>
<p>For each cell of the table, we have to calculate the expected value under null hypothesis.</p>
<p>For a given cell, the expected value is calculated as follow:</p>
<p><span class="math display">\[
e = \frac{row.sum * col.sum}{grand.total}
\]</span></p>
<p>The Chi-square statistic is calculated as follow:</p>
<p><span class="math display">\[
\chi^2 = \sum{\frac{(o - e)^2}{e}}
\]</span></p>
<ul>
<li>o is the observed value</li>
<li>e is the expected value</li>
</ul>
<p>This calculated Chi-square statistic is compared to the critical value (obtained from statistical tables) with <span class="math inline">\(df = (r - 1)(c - 1)\)</span> degrees of freedom and p = 0.05.</p>
<ul>
<li><em>r</em> is the number of rows in the contingency table</li>
<li><em>c</em> is the number of column in the contingency table</li>
</ul>
<p>If the calculated Chi-square statistic is greater than the critical value, then we must conclude that the row and the column variables are not independent of each other. This implies that they are significantly associated.</p>
<div class="warning">
<p>
Note that, Chi-square test should only be applied when the expected frequency of any cell is at least 5.
</p>
</div>
<p>Chi-square statistic can be easily computed using the function <code>chisq.test()</code> as follow:</p>
<pre class="r"><code>chisq <- chisq.test(housetasks)
chisq</code></pre>
<pre><code>## 
##  Pearson&amp;#39;s Chi-squared test
## 
## data:  housetasks
## X-squared = 2000, df = 40, p-value <2e-16</code></pre>
<p>In our example, the row and the column variables are statistically significantly associated (<em>p-value</em> = 0)</p>
<div class="warning">
<p>
Note that, while Chi-square test can help to establish dependence between rows and the columns, the nature of the dependency is unknown.
</p>
</div>
<p>The observed and the expected counts can be extracted from the result of the test as follow:</p>
<pre class="r"><code># Observed counts
chisq$observed</code></pre>
<pre><code>##            Wife Alternating Husband Jointly
## Laundry     156          14       2       4
## Main_meal   124          20       5       4
## Dinner       77          11       7      13
## Breakfeast   82          36      15       7
## Tidying      53          11       1      57
## Dishes       32          24       4      53
## Shopping     33          23       9      55
## Official     12          46      23      15
## Driving      10          51      75       3
## Finances     13          13      21      66
## Insurance     8           1      53      77
## Repairs       0           3     160       2
## Holidays      0           1       6     153</code></pre>
<pre class="r"><code># Expected counts
round(chisq$expected,2)</code></pre>
<pre><code>##            Wife Alternating Husband Jointly
## Laundry    60.5        25.6    38.5    51.4
## Main_meal  52.6        22.3    33.4    44.6
## Dinner     37.2        15.7    23.6    31.5
## Breakfeast 48.2        20.4    30.6    40.9
## Tidying    42.0        17.8    26.6    35.6
## Dishes     38.9        16.5    24.7    33.0
## Shopping   41.3        17.5    26.2    35.0
## Official   33.0        14.0    21.0    28.0
## Driving    47.8        20.2    30.4    40.6
## Finances   38.9        16.5    24.7    33.0
## Insurance  47.8        20.2    30.4    40.6
## Repairs    56.8        24.0    36.0    48.2
## Holidays   55.0        23.3    35.0    46.7</code></pre>
<p>As mentioned above the Chi-square statistic is 1944.456.</p>
<div class="question">
<p>
Which are the most contributing cells to the definition of the total Chi-square statistic?
</p>
</div>
<p>If you want to know the most contributing cells to the total Chi-square score, you just have to calculate the Chi-square statistic for each cell:</p>
<p><span class="math display">\[
r = \frac{o - e}{\sqrt{e}}
\]</span></p>
<p>The above formula returns the so-called <em>Pearson residuals (r)</em> for each cell (or standardized residuals). Cells with the highest absolute standardized residuals contribute the most to the total Chi-square score.</p>
<p>Pearson residuals can be easily extracted from the output of the function <code>chisq.test()</code>:</p>
<pre class="r"><code>round(chisq$residuals, 3)</code></pre>
<pre><code>##             Wife Alternating Husband Jointly
## Laundry    12.27      -2.298  -5.878   -6.61
## Main_meal   9.84      -0.484  -4.917   -6.08
## Dinner      6.54      -1.192  -3.416   -3.30
## Breakfeast  4.88       3.457  -2.818   -5.30
## Tidying     1.70      -1.606  -4.969    3.58
## Dishes     -1.10       1.859  -4.163    3.49
## Shopping   -1.29       1.321  -3.362    3.38
## Official   -3.66       8.563   0.443   -2.46
## Driving    -5.47       6.836   8.100   -5.90
## Finances   -4.15      -0.852  -0.742    5.75
## Insurance  -5.76      -4.277   4.107    5.72
## Repairs    -7.53      -4.290  20.646   -6.65
## Holidays   -7.42      -4.620  -4.897   15.56</code></pre>
<p>Let’s visualize Pearson residuals using the package <code>corrplot</code>:</p>
<pre class="r"><code>library(corrplot)
corrplot(chisq$residuals, is.cor = FALSE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-residuals-chi-square-data-mining-1.png" width="518.4" /></p>
<p>For a given cell, the size of the circle is proportional to the amount of the cell contribution.</p>
<p>The sign of the standardized residuals is also very important to interpret the association between rows and columns as explained in the block below:</p>
<ol style="list-style-type: decimal">
<li><em>Positive residuals</em> are in blue. Positive values in cells specify an attraction (positive association) between the corresponding row and column variables.
<ul>
<li>In the image above, it’s evident that there are an association between the column Wife and, the rows Laundry and Main_meal.</li>
<li>There is a strong positive association between the column Husband and the row Repair</li>
</ul></li>
<li><em>Negative residuals</em> are in red. This implies a repulsion (negative association) between the corresponding row and column variables. For example the column Wife are negatively associated (~ “not associated”) with the row Repairs. There is a repulsion between the column Husband and, the rows Laundry and Main_meal</li>
</ol>
<div class="warning">
<p>
Note that, correspondence analysis is just the singular value decomposition of the standardized residuals. This will be explained in the next section.
</p>
</div>
<p>The contribution (in %) of a given cell to the total Chi-square score is calculated as follow:</p>
<p><span class="math display">\[
contrib = \frac{r^2}{\chi^2}
\]</span></p>
<ul>
<li><code>r</code> is the residual of the cell</li>
</ul>
<pre class="r"><code># Contibution in percentage (%)
contrib <- 100*chisq$residuals^2/chisq$statistic
round(contrib, 3)</code></pre>
<pre><code>##             Wife Alternating Husband Jointly
## Laundry    7.738       0.272   1.777   2.246
## Main_meal  4.976       0.012   1.243   1.903
## Dinner     2.197       0.073   0.600   0.560
## Breakfeast 1.222       0.615   0.408   1.443
## Tidying    0.149       0.133   1.270   0.661
## Dishes     0.063       0.178   0.891   0.625
## Shopping   0.085       0.090   0.581   0.586
## Official   0.688       3.771   0.010   0.311
## Driving    1.538       2.403   3.374   1.789
## Finances   0.886       0.037   0.028   1.700
## Insurance  1.705       0.941   0.868   1.683
## Repairs    2.919       0.947  21.921   2.275
## Holidays   2.831       1.098   1.233  12.445</code></pre>
<pre class="r"><code># Visualize the contribution
corrplot(contrib, is.cor = FALSE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-contribution-chi-square-data-mining-1.png" width="518.4" /></p>
<p>The relative contribution of each cell to the total Chi-square score give some indication of the nature of the dependency between rows and columns of the contingency table.</p>
<p>It can be seen that:</p>
<ol style="list-style-type: decimal">
<li>The column “Wife” is strongly associated with Laundry, Main_meal, Dinner</li>
<li>The column “Husband” is strongly associated with the row Repairs</li>
<li>The column jointly is frequently associated with the row Holidays</li>
</ol>
<div class="success">
<p>
From the image above, it can be seen that the most contributing cells to the Chi-square are Wife/Laundry (7.74%), Wife/Main_meal (4.98%), Husband/Repairs (21.9%), Jointly/Holidays (12.44%).
</p>
<p>
These cells contribute about 47.06% to the total Chi-square score and thus account for most of the difference between expected and observed values.
</p>
<p>
This confirms the earlier visual interpretation of the data. As stated earlier, visual interpretation may be complex when the contingency table is very large. In this case, the contribution of one cell to the total Chi-square score becomes a useful way of establishing the nature of dependency.
</p>
</div>
</div>
<div id="total-inertia" class="section level3">
<h3>Total inertia</h3>
<p>As mentioned above, the total inertia is the amount of the information contained in the data table.</p>
<p>It’s called <span class="math inline">\(\phi^2\)</span> (squared phi) and is calculated as follow:</p>
<p><span class="math display">\[
\phi^2 = \frac{\chi^2}{grand.total}
\]</span></p>
<pre class="r"><code>phi2 <- as.numeric(chisq$statistic/sum(housetasks))
phi2</code></pre>
<pre><code>## [1] 1.11</code></pre>
<p>The square root of <span class="math inline">\(\phi^2\)</span> are called <em>trace</em> and may be interpreted as a correlation coefficient (Bendixen, 2003). Any value of the trace > 0.2 indicates a significant dependency between rows and columns (Bendixen M., 2003)</p>
</div>
<div id="mosaic-plot" class="section level3">
<h3>Mosaic plot</h3>
<p>Mosaic plot is used to visualize a contingency table in order to examine the association between categorical variables.</p>
<p>The function <code>mosaicplot()</code> [graphics package] can be used.</p>
<pre class="r"><code>library("graphics")
# Mosaic plot of observed values
mosaicplot(housetasks,  las=2, col="steelblue",
           main = "housetasks - observed counts")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-contingency-table-graph-mosaic-1.png" width="480" /></p>
<pre class="r"><code># Mosaic plot of expected values
mosaicplot(chisq$expected,  las=2, col = "gray",
           main = "housetasks - expected counts")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-contingency-table-graph-mosaic-2.png" width="480" /></p>
<p>In these plots, column variables are firstly spitted (vertical split) and then row variables are spited(horizontal split). For each cell, the height of bars is proportional to the observed relative frequency it contains:</p>
<p><span class="math display">\[
\frac{cell.value}{column.sum}
\]</span></p>
<p>The blue plot, is the <strong>mosaic plot</strong> of the observed values. The gray one is the <strong>mosaic plot</strong> of the expected values under null hypothesis.</p>
<div class="success">
<p>
If row and column variables were completely independent the mosaic bars for the observed values (blue graph) would be aligned as the mosaic bars for the expected values (gray graph).
</p>
</div>
<p>It’s also possible to color the mosaic plot according to the value of the standardized residuals:</p>
<pre class="r"><code>mosaicplot(housetasks, shade = TRUE,   # Color the graph
           las = 2,                    # produces vertical labels
           main = "housetasks")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-contingency-table-graph-mosaic-color-data-mining-1.png" width="480" /></p>
<ul>
<li>This plot clearly show you that Laundry, Main_meal, Dinner and Breakfeast are more often done by the “Wife”.</li>
<li>Repairs are done by the Husband</li>
</ul>
</div>
<div id="g-test-likelihood-ratio-test" class="section level3">
<h3>G-test: Likelihood ratio test</h3>
<p>The <code>G–test</code> of independence is an alternative to the chi-square test of independence, and they will give approximately the same conclusion.</p>
<p>The test is based on the likelihood ratio defined as follow:</p>
<p><span class="math display">\[
ratio = \frac{o}{e}
\]</span></p>
<ul>
<li>o is the observed value</li>
<li>e is the expected value under null hypothesis</li>
</ul>
<p>This likelihood ratio, or its logarithm, can be used to compute a <code>p-value</code>. When the logarithm of the likelihood ratio is used, the statistic is known as a <code>log-likelihood ratio statistic</code>.</p>
<p>This test is called <em>G-test</em> (or likelihood ratio test or maximum likelihood statistical significance test) and can be used in situations where Chi-square tests were previously recommended.</p>
<p>The <em>G-test</em> is generally defined as follow:</p>
<p><span class="math display">\[
G = 2 * \sum{o * log(\frac{o}{e})}
\]</span></p>
<ul>
<li><code>o</code> is the observed frequency in a cell</li>
<li><code>e</code> is the expected frequency under the null hypothesis</li>
<li><code>log</code> is the natural logarithm</li>
<li>The <code>sum</code> is taken over all non-empty cells.</li>
</ul>
<p>The distribution of G is approximately a chi-squared distribution, with the same number of degrees of freedom as in the corresponding chi-squared test:</p>
<p><span class="math display">\[df = (r - 1)(c - 1)\]</span></p>
<ul>
<li><code>r</code> is the number of rows in the contingency table</li>
<li><code>c</code> is the number of column in the contingency table</li>
</ul>
<p>The commonly used Pearson Chi-square test is, in fact, just an approximation of the <strong>log-likelihood ratio</strong> on which the G-tests are based.</p>
<p>Remember that, the Chi-square formula is:</p>
<p><span class="math display">\[
\chi^2 = \sum{\frac{(o - e)^2}{e}}
\]</span></p>
<p>The functions <code>likelihood.test()</code> [Deducer package] or <code>G.test()</code> [RVAideMemoire] can be used to perform a <em>G-test</em> on a contingency table.</p>
<p>We’ll use the package <code>RVAideMemoire</code> which can be installed as follow : <code>install.packages("RVAideMemoire")</code>.</p>
<p>The function <code>G.test()</code> works as <code>chisq.test()</code>:</p>
<pre class="r"><code>library("RVAideMemoire")
gtest <- G.test(as.matrix(housetasks))
gtest</code></pre>
<pre><code>## 
##  G-test
## 
## data:  as.matrix(housetasks)
## G = 2000, df = 40, p-value <2e-16</code></pre>
</div>
<div id="interpret-the-association-between-rows-and-columns" class="section level3">
<h3>Interpret the association between rows and columns</h3>
<p>To interpret the association between the rows and the columns of the contingency table, the likelihood ratio can be used as an index (<em>i</em>):</p>
<p><span class="math display">\[
ratio = \frac{o}{e}
\]</span></p>
<p>For a given cell,</p>
<ul>
<li>If ratio > 1, there is an “attraction” (association) between the corresponding column and row</li>
<li>If ratio < 1, there is a “repulsion” between the corresponding column and row</li>
</ul>
<p>The ratio can be calculated as follow:</p>
<pre class="r"><code>ratio <- chisq$observed/chisq$expected
round(ratio,3)</code></pre>
<pre><code>##             Wife Alternating Husband Jointly
## Laundry    2.576       0.546   0.052   0.078
## Main_meal  2.356       0.898   0.150   0.090
## Dinner     2.072       0.699   0.297   0.412
## Breakfeast 1.702       1.766   0.490   0.171
## Tidying    1.263       0.619   0.038   1.601
## Dishes     0.823       1.458   0.162   1.607
## Shopping   0.799       1.316   0.343   1.570
## Official   0.363       3.290   1.097   0.535
## Driving    0.209       2.519   2.470   0.074
## Finances   0.334       0.790   0.851   2.001
## Insurance  0.167       0.049   1.745   1.898
## Repairs    0.000       0.125   4.439   0.042
## Holidays   0.000       0.043   0.172   3.276</code></pre>
<p>Note that, you can also use the R code : <code>gtest\$observed/gtest\$expected</code></p>
<p>The package <code>corrplot</code> can be used to make a graph of the likelihood ratio:</p>
<pre class="r"><code>corrplot(ratio, is.cor = FALSE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-likelihood-ratio-data-mining-1.png" width="518.4" /></p>
<p>The image above confirms our previous observations:</p>
<ul>
<li>The rows Laundry, Main_meal and Dinner are associated with the column Wife</li>
<li>Repairs are done more often by the Husband</li>
<li>Holidays are taken Jointly</li>
</ul>
<p>Let’s take the log(ratio) to see the attraction and the repulsion in different colors:</p>
<ul>
<li>If ratio < 1 => log(ratio) < 0 (negative values) => red color</li>
<li>If ratio > 1 = > log(ratio) > 0 (positive values) => blue color</li>
</ul>
<p>We’ll also add a small value (0.5) to all cells to avoid log(0):</p>
<pre class="r"><code>corrplot(log2(ratio + 0.5), is.cor = FALSE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-log-likelihood-ratio-data-mining-1.png" width="518.4" /></p>
</div>
</div>
<div id="correspondence-analysis" class="section level2">
<h2>Correspondence analysis</h2>
<p>Correspondence analysis (CA) is required for large contingency table.</p>
<p>It used to graphically visualize row points and column points in a low dimensional space.</p>
<p>CA is a dimensional reduction method applied to a contingency table. The information retained by each dimension is called eigenvalue.</p>
<p>The total information (or inertia) contained in the data is called phi (<span class="math inline">\(\phi^2\)</span>) and can be calculated as follow:</p>
<p><span class="math display">\[
\phi^2 = \frac{\chi^2}{grand.total}
\]</span></p>
<p>For a given axis, the eigenvalue (<span class="math inline">\(\lambda\)</span>) is computed as follow:</p>
<p><span class="math display">\[
\lambda_{axis} = \sum{\frac{row.sum}{grand.total} * row.coord^2}
\]</span></p>
<p>Or equivalently</p>
<p><span class="math display">\[
\lambda_{axis} = \sum{\frac{col.sum}{grand.total} * col.coord^2}
\]</span></p>
<ul>
<li>row.coord and col.coord are the coordinates of row and column variables on the axis.</li>
</ul>
<p>The association index between a row and column for the principal axes can be computed as follow:</p>
<p><span class="math display">\[
i = 1 + \sum{\frac{row.coord * col.coord}{\sqrt{\lambda}}}
\]</span></p>
<ul>
<li><span class="math inline">\(\lambda\)</span> is the eigenvalue of the axes</li>
<li>The sum denotes the sum for all axis</li>
</ul>
<p>If there is an attraction the corresponding row and column coordinates have the same sign on the axes. If there is a repulsion the corresponding row and column coordinates have different signs on the axes. A high value indicates a strong attraction or repulsion</p>
</div>
<div id="ca---singular-value-decomposition-of-the-standardized-residuals" class="section level2">
<h2>CA - Singular value decomposition of the standardized residuals</h2>
<p>Correspondence analysis (CA) is used to represent graphically the table of distances between row variables or between column variables.</p>
<p>CA approach includes the following steps:</p>
<p>STEP 1. <em>Compute the standardized residuals</em></p>
<p>The <em>standardized residuals</em> (S) is:</p>
<p><span class="math display">\[
S = \frac{o - e}{\sqrt{e}}
\]</span></p>
<p>In fact, S is just the square roots of the terms comprising <span class="math inline">\(\chi^2\)</span> statistic.</p>
<p>STEP II. Compute the <em>singular value decomposition</em> (SVD) of the <em>standardized residuals</em>.</p>
<p>Let M be: <span class="math inline">\(M = \frac{1}{sqrt(grand.total)} \times S\)</span></p>
<p>SVD means that we want to find orthogonal matrices <em>U</em> and <em>V</em>, together with a diagonal matrix <span class="math inline">\(\Delta\)</span>, such that:</p>
<p><span class="math display">\[
M = U \Delta V^T
\]</span></p>
<p>(Phillip M. Yelland, 2010)</p>
<ul>
<li><span class="math inline">\(U\)</span> is a matrix containing row eigenvectors</li>
<li><span class="math inline">\(\Delta\)</span> is the diagonal matrix. The numbers on the diagonal of the matrix are called singular values (SV). The eigenvalues are the squared SV.</li>
<li><span class="math inline">\(V\)</span> is a matrix containing column eigenvectors</li>
</ul>
<p>The eigenvalue of a given axis is:</p>
<p><span class="math display">\[
\lambda = \delta^2
\]</span></p>
<ul>
<li><span class="math inline">\(\delta\)</span> is the singular value</li>
</ul>
<p>The coordinates of row variables on a given axis are:</p>
<p><span class="math display">\[
row.coord = \frac{U * \delta }{\sqrt{row.mass}}
\]</span></p>
<p>The coordinates of columns are:</p>
<p><span class="math display">\[
col.coord = \frac{V * \delta }{\sqrt{col.mass}}
\]</span></p>
<p>Compute SVD in R:</p>
<pre class="r"><code># Grand total
n <- sum(housetasks)
# Standardized residuals
residuals <- chisq$residuals/sqrt(n)
# Number of dimensions
nb.axes <- min(nrow(residuals)-1, ncol(residuals)-1)
# Singular value decomposition
res.svd <- svd(residuals, nu = nb.axes, nv = nb.axes)
res.svd</code></pre>
<pre><code>## $d
## [1] 7.37e-01 6.67e-01 3.56e-01 1.01e-16
## 
## $u
##          [,1]    [,2]    [,3]
##  [1,] -0.4276 -0.2359 -0.2823
##  [2,] -0.3520 -0.2176 -0.1363
##  [3,] -0.2339 -0.1149 -0.1448
##  [4,] -0.1956 -0.1923  0.1752
##  [5,] -0.1414  0.1722 -0.0699
##  [6,] -0.0653  0.1686  0.1906
##  [7,] -0.0419  0.1586  0.1491
##  [8,]  0.0722 -0.0892  0.6078
##  [9,]  0.2842 -0.2765  0.4312
## [10,]  0.0935  0.2358  0.0248
## [11,]  0.2479  0.2005 -0.2292
## [12,]  0.6382 -0.3985 -0.4074
## [13,]  0.1038  0.6516 -0.1101
## 
## $v
##         [,1]   [,2]    [,3]
## [1,] -0.6668 -0.321 -0.3290
## [2,] -0.0322 -0.167  0.9086
## [3,]  0.7364 -0.422 -0.2477
## [4,]  0.1096  0.831 -0.0704</code></pre>
<pre class="r"><code>sv <- res.svd$d[1:nb.axes] # singular value
u <-res.svd$u
v <- res.svd$v</code></pre>
<div id="eigenvalues-and-screeplot" class="section level3">
<h3>Eigenvalues and screeplot</h3>
<pre class="r"><code># Eigenvalues
eig <- sv^2
# Variances in percentage
variance <- eig*100/sum(eig)
# Cumulative variances
cumvar <- cumsum(variance)

eig<- data.frame(eig = eig, variance = variance,
                     cumvariance = cumvar)
head(eig)</code></pre>
<pre><code>##     eig variance cumvariance
## 1 0.543     48.7        48.7
## 2 0.445     39.9        88.6
## 3 0.127     11.4       100.0</code></pre>
<pre class="r"><code>barplot(eig[, 2], names.arg=1:nrow(eig), 
       main = "Variances",
       xlab = "Dimensions",
       ylab = "Percentage of variances",
       col ="steelblue")
# Add connected line segments to the plot
lines(x = 1:nrow(eig), eig[, 2], 
      type="b", pch=19, col = "red")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-eigenvalue-data-mining-1.png" width="518.4" /></p>
<p>How many dimensions to retain?:</p>
<ol style="list-style-type: decimal">
<li>The maximum number of axes in the CA is :</li>
</ol>
<p><span class="math display">\[
nb.axes = min( r-1, c-1)
\]</span></p>
<p>r and c are respectively the number of rows and columns in the table.</p>
<ol start="2" style="list-style-type: decimal">
<li>Use elbow method</li>
</ol>
</div>
<div id="row-coordinates" class="section level3">
<h3>Row coordinates</h3>
<p>We can use the function <code>apply</code> to perform arbitrary operations on the rows and columns of a matrix.</p>
<p>A simplified format is:</p>
<pre class="r"><code>apply(X, MARGIN, FUN, ...)</code></pre>
<ul>
<li><code>x</code>: a matrix</li>
<li><code>MARGIN</code>: allowed values can be 1 or 2. 1 specifies that we want to operate on the rows of the matrix. 2 specifies that we want to operate on the column.</li>
<li><code>FUN</code>: the function to be applied</li>
<li><code>...</code>: optional arguments to FUN</li>
</ul>
<pre class="r"><code># row sum
row.sum <- apply(housetasks, 1, sum)
# row mass
row.mass <- row.sum/n

# row coord = sv * u /sqrt(row.mass)
cc <- t(apply(u, 1, &amp;#39;*&amp;#39;, sv)) # each row X sv
row.coord <- apply(cc, 2, &amp;#39;/&amp;#39;, sqrt(row.mass))
rownames(row.coord) <- rownames(housetasks)
colnames(row.coord) <- paste0("Dim.", 1:nb.axes)
round(row.coord,3)</code></pre>
<pre><code>##             Dim.1  Dim.2  Dim.3
## Laundry    -0.992 -0.495 -0.317
## Main_meal  -0.876 -0.490 -0.164
## Dinner     -0.693 -0.308 -0.207
## Breakfeast -0.509 -0.453  0.220
## Tidying    -0.394  0.434 -0.094
## Dishes     -0.189  0.442  0.267
## Shopping   -0.118  0.403  0.203
## Official    0.227 -0.254  0.923
## Driving     0.742 -0.653  0.544
## Finances    0.271  0.618  0.035
## Insurance   0.647  0.474 -0.289
## Repairs     1.529 -0.864 -0.472
## Holidays    0.252  1.435 -0.130</code></pre>
<pre class="r"><code># plot
plot(row.coord, pch=19, col = "blue")
text(row.coord, labels =rownames(row.coord), pos = 3, col ="blue")
abline(v=0, h=0, lty = 2)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-row-coordinates-1.png" width="518.4" /></p>
</div>
<div id="column-coordinates" class="section level3">
<h3>Column coordinates</h3>
<pre class="r"><code># Coordinates of columns
col.sum <- apply(housetasks, 2, sum)
col.mass <- col.sum/n
# coordinates sv * v /sqrt(col.mass)
cc <- t(apply(v, 1, &amp;#39;*&amp;#39;, sv))
col.coord <- apply(cc, 2, &amp;#39;/&amp;#39;, sqrt(col.mass))
rownames(col.coord) <- colnames(housetasks)
colnames(col.coord) <- paste0("Dim", 1:nb.axes)
head(col.coord)</code></pre>
<pre><code>##                Dim1   Dim2    Dim3
## Wife        -0.8376 -0.365 -0.1999
## Alternating -0.0622 -0.292  0.8486
## Husband      1.1609 -0.602 -0.1889
## Jointly      0.1494  1.027 -0.0464</code></pre>
<pre class="r"><code># plot
plot(col.coord, pch=17, col = "red")
text(col.coord, labels =rownames(col.coord), pos = 3, col ="red")
abline(v=0, h=0, lty = 2)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-column-coordinates-1.png" width="518.4" /></p>
</div>
<div id="biplot-of-rows-and-columns-to-view-the-association" class="section level3">
<h3>Biplot of rows and columns to view the association</h3>
<pre class="r"><code>xlim <- range(c(row.coord[,1], col.coord[,1]))*1.1
ylim <- range(c(row.coord[,2], col.coord[,2]))*1.1
# Plot of rows
plot(row.coord, pch=19, col = "blue", xlim = xlim, ylim = ylim)
text(row.coord, labels =rownames(row.coord), pos = 3, col ="blue")
# plot off columns
points(col.coord, pch=17, col = "red")
text(col.coord, labels =rownames(col.coord), pos = 3, col ="red")
abline(v=0, h=0, lty = 2)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-biplot-1.png" width="518.4" /></p>
<p>You can interpret the distance between rows points or between column points but the distance between column points and row points are not meaningful.</p>
</div>
<div id="diagnostic" class="section level3">
<h3>Diagnostic</h3>
<p>Recall that, the total inertia contained in the data is:</p>
<p><span class="math display">\[
\phi^2 = \frac{\chi^2}{n} = 1.11494 
\]</span></p>
<p>Our two-dimensional plot captures about 88% of the total inertia of the table.</p>
</div>
<div id="contribution-of-rows-and-columns" class="section level3">
<h3>Contribution of rows and columns</h3>
<p>The contributions of a rows/columns to the definition of a principal axis are :</p>
<p><span class="math display">\[
row.contrib = \frac{row.mass * row.coord^2}{eigenvalue}
\]</span></p>
<p><span class="math display">\[
col.contrib = \frac{col.mass * col.coord^2}{eigenvalue}
\]</span></p>
<p>Contribution of rows in %</p>
<pre class="r"><code># contrib <- row.mass * row.coord^2/eigenvalue
cc <- apply(row.coord^2, 2, "*", row.mass)
row.contrib <- t(apply(cc, 1, "/", eig[1:nb.axes,1])) *100
round(row.contrib, 2)</code></pre>
<pre><code>##            Dim.1 Dim.2 Dim.3
## Laundry    18.29  5.56  7.97
## Main_meal  12.39  4.74  1.86
## Dinner      5.47  1.32  2.10
## Breakfeast  3.82  3.70  3.07
## Tidying     2.00  2.97  0.49
## Dishes      0.43  2.84  3.63
## Shopping    0.18  2.52  2.22
## Official    0.52  0.80 36.94
## Driving     8.08  7.65 18.60
## Finances    0.88  5.56  0.06
## Insurance   6.15  4.02  5.25
## Repairs    40.73 15.88 16.60
## Holidays    1.08 42.45  1.21</code></pre>
<pre class="r"><code>corrplot(row.contrib, is.cor = FALSE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-row-contribution-graph-1.png" width="518.4" /></p>
<p>Contribution of columns in %</p>
<pre class="r"><code># contrib <- col.mass * col.coord^2/eigenvalue
cc <- apply(col.coord^2, 2, "*", col.mass)
col.contrib <- t(apply(cc, 1, "/", eig[1:nb.axes,1])) *100
round(col.contrib, 2)</code></pre>
<pre><code>##             Dim1  Dim2  Dim3
## Wife        44.5 10.31 10.82
## Alternating  0.1  2.78 82.55
## Husband     54.2 17.79  6.13
## Jointly      1.2 69.12  0.50</code></pre>
<pre class="r"><code>corrplot(col.contrib, is.cor = FALSE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-column-contrib-graph-1.png" width="518.4" /></p>
</div>
<div id="quality-of-the-representation" class="section level3">
<h3>Quality of the representation</h3>
<p>The quality of the representation is called <strong>COS2</strong>.</p>
<p>The quality of the representation of a row on an axis is:</p>
<p><span class="math display">\[
row.cos2 = \frac{row.coord^2}{d^2}
\]</span></p>
<ul>
<li>row.coord is the coordinate of the row on the axis</li>
<li><span class="math inline">\(d^2\)</span> is the squared distance from the average profile</li>
</ul>
<p>Recall that the distance between each row profile and the average row profile is:</p>
<p><span class="math display">\[ 
  d^2(row_i, average.profile) = \sum{\frac{(row.profile_i - average.profile)^2}{average.profile}}
\]</span></p>
<pre class="r"><code>row.profile <- housetasks/row.sum
head(round(row.profile, 3))</code></pre>
<pre><code>##             Wife Alternating Husband Jointly
## Laundry    0.886       0.080   0.011   0.023
## Main_meal  0.810       0.131   0.033   0.026
## Dinner     0.713       0.102   0.065   0.120
## Breakfeast 0.586       0.257   0.107   0.050
## Tidying    0.434       0.090   0.008   0.467
## Dishes     0.283       0.212   0.035   0.469</code></pre>
<pre class="r"><code>average.profile <- col.sum/n
head(round(average.profile, 3))</code></pre>
<pre><code>##        Wife Alternating     Husband     Jointly 
##       0.344       0.146       0.218       0.292</code></pre>
<p>The R code below computes the distance from the average profile for all the row variables</p>
<pre class="r"><code>d2.row <- apply(row.profile, 1, 
                function(row.p, av.p){sum(((row.p - av.p)^2)/av.p)}, 
                average.rp)
head(round(d2.row,3))</code></pre>
<pre><code>##    Laundry  Main_meal     Dinner Breakfeast    Tidying     Dishes 
##      1.329      1.034      0.618      0.512      0.353      0.302</code></pre>
<p>The cos2 of rows on the factor map are:</p>
<pre class="r"><code>row.cos2 <- apply(row.coord^2, 2, "/", d2.row)
round(row.cos2, 3)</code></pre>
<pre><code>##            Dim.1 Dim.2 Dim.3
## Laundry    0.740 0.185 0.075
## Main_meal  0.742 0.232 0.026
## Dinner     0.777 0.154 0.070
## Breakfeast 0.505 0.400 0.095
## Tidying    0.440 0.535 0.025
## Dishes     0.118 0.646 0.236
## Shopping   0.064 0.748 0.189
## Official   0.053 0.066 0.881
## Driving    0.432 0.335 0.233
## Finances   0.161 0.837 0.003
## Insurance  0.576 0.309 0.115
## Repairs    0.707 0.226 0.067
## Holidays   0.030 0.962 0.008</code></pre>
<p>visualize the cos2:</p>
<pre class="r"><code>corrplot(row.cos2, is.cor = FALSE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-cos2-graph2-1.png" width="518.4" /></p>
</div>
<div id="cos2-of-columns" class="section level3">
<h3>Cos2 of columns</h3>
<p><span class="math display">\[
col.cos2 = \frac{col.coord^2}{d^2}
\]</span></p>
<pre class="r"><code>col.profile <- t(housetasks)/col.sum
col.profile <- t(col.profile)
#head(round(col.profile, 3))

average.profile <- row.sum/n
#head(round(average.profile, 3))</code></pre>
<p>The R code below computes the distance from the average profile for all the column variables</p>
<pre class="r"><code>d2.col <- apply(col.profile, 2, 
        function(col.p, av.p){sum(((col.p - av.p)^2)/av.p)}, 
        average.profile)
#round(d2.col,3)</code></pre>
<p>The cos2 of columns on the factor map are:</p>
<pre class="r"><code>col.cos2 <- apply(col.coord^2, 2, "/", d2.col)
round(col.cos2, 3)</code></pre>
<pre><code>##              Dim1  Dim2  Dim3
## Wife        0.802 0.152 0.046
## Alternating 0.005 0.105 0.890
## Husband     0.772 0.208 0.020
## Jointly     0.021 0.977 0.002</code></pre>
<p>visualize the cos2:</p>
<pre class="r"><code>corrplot(col.cos2, is.cor = FALSE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-cos2-graph-1.png" width="518.4" /></p>
</div>
<div id="supplementary-rowscolumns" class="section level3">
<h3>Supplementary rows/columns</h3>
<div id="the-supplementary-row-coordinates" class="section level4">
<h4>The supplementary row coordinates</h4>
<p><span class="math display">\[
sup.row.coord = sup.row.profile * \frac{v}{\sqrt{col.mass}}
\]</span></p>
<pre class="r"><code># Supplementary row
sup.row <- as.data.frame(housetasks["Dishes",, drop = FALSE])
# Supplementary row profile
sup.row.sum <- apply(sup.row, 1, sum)
sup.row.profile <- sweep(sup.row, 1, sup.row.sum, "/")
# V/sqrt(col.mass)
vv <- sweep(v, 1, sqrt(col.mass), FUN = "/")
# Supplementary row coord
sup.row.coord <- as.matrix(sup.row.profile) %*% vv
sup.row.coord</code></pre>
<pre><code>##          [,1]  [,2]  [,3]
## Dishes -0.189 0.442 0.267</code></pre>
<pre class="r"><code>## COS2 = coor^2/Distance from average profile
d2.row <- apply(sup.row.profile, 1, 
        function(row.p, av.p){sum(((row.p - av.p)^2)/av.p)}, 
        average.rp)
sup.row.cos2 <- sweep(sup.row.coord^2, 1, d2.row, FUN = "/")</code></pre>
</div>
</div>
</div>
<div id="practice-in-r" class="section level2">
<h2>Practice in R</h2>
<pre class="r"><code>library(FactoMineR)
res.ca <- CA(housetasks, graph = F)
# print
res.ca</code></pre>
<pre><code>## **Results of the Correspondence Analysis (CA)**
## The row variable has  13  categories; the column variable has 4 categories
## The chi square of independence between the two variables is equal to 1944 (p-value =  0 ).
## *The results are available in the following objects:
## 
##    name              description                   
## 1  "$eig"            "eigenvalues"                 
## 2  "$col"            "results for the columns"     
## 3  "$col$coord"      "coord. for the columns"      
## 4  "$col$cos2"       "cos2 for the columns"        
## 5  "$col$contrib"    "contributions of the columns"
## 6  "$row"            "results for the rows"        
## 7  "$row$coord"      "coord. for the rows"         
## 8  "$row$cos2"       "cos2 for the rows"           
## 9  "$row$contrib"    "contributions of the rows"   
## 10 "$call"           "summary called parameters"   
## 11 "$call$marge.col" "weights of the columns"      
## 12 "$call$marge.row" "weights of the rows"</code></pre>
<pre class="r"><code># eigenvalue
head(res.ca$eig)[, 1:2]</code></pre>
<pre><code>##       eigenvalue percentage of variance
## dim 1      0.543                   48.7
## dim 2      0.445                   39.9
## dim 3      0.127                   11.4</code></pre>
<pre class="r"><code># barplot of percentage of variance
barplot(res.ca$eig[,2], names.arg = rownames(res.ca$eig))</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-factominer-data-mining-1.png" width="576" /></p>
<pre class="r"><code># Plot row points
plot(res.ca, invisible ="col")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-factominer-data-mining-2.png" width="576" /></p>
<pre class="r"><code># Plot column points
plot(res.ca, invisible ="col")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-factominer-data-mining-3.png" width="576" /></p>
<pre class="r"><code># Biplot of rows and columns
plot(res.ca)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/016-correspondence-analysis-theory-factominer-data-mining-4.png" width="576" /></p>
</div>
<div id="references" class="section level2">
<h2>References</h2>
<ul>
<li>Phillip M. Yelland. An introduction to correspondence analysis. Mathematica Journal. 2010. <a href="http://www.mathematica-journal.com/data/uploads/2010/09/Yelland.pdf" class="uri">http://www.mathematica-journal.com/data/uploads/2010/09/Yelland.pdf</a></li>
<li>Ricco RAKOTOMALALA (article in french). Analyse factorielle des correspondances. University Lyon 2. <a href="http://eric.univ-lyon2.fr/~ricco/cours/slides/AFC.pdf" class="uri">http://eric.univ-lyon2.fr/~ricco/cours/slides/AFC.pdf</a></li>
<li>Bendixen M. 2003, A Practical Guide to the Use of Correspondence Analysis in Marketing Research, Marketing Bulletin, 2003, 14, Technical Note 2. <a href="http://marketing-bulletin.massey.ac.nz/V14/MB_V14_T2_Bendixen.pdf" class="uri">http://marketing-bulletin.massey.ac.nz/V14/MB_V14_T2_Bendixen.pdf</a></li>
</ul>
</div>


</div><!--end rdoc-->

 
<!-- dynamically load mathjax for compatibility with self-contained -->
<script>
  (function () {
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.src  = "https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
    document.getElementsByTagName("head")[0].appendChild(script);
  })();
</script>

<!-- END HTML -->]]></description>
			<pubDate>Sun, 08 Oct 2017 01:12:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[PCA in R Using Ade4: Quick Scripts]]></title>
			<link>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/119-pca-in-r-using-ade4-quick-scripts/</link>
			<guid>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/119-pca-in-r-using-ade4-quick-scripts/</guid>
			<description><![CDATA[<!-- START HTML -->

  <div id="rdoc">
<p>This article provides quick start R codes to compute <em>principal component analysis</em> (<em>PCA</em>) using the function <strong>dudi.pca</strong>() in the <strong>ade4</strong> <strong>R</strong> package. We’ll use the factoextra R package to visualize the <em>PCA results</em>. We’ll describe also how to predict the coordinates for new individuals / variables data using ade4 functions.</p>
<p>Read more about the basics and the interpretation of principal component analysis in our previous article: <a href="https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/112-pca-principal-component-analysis-essentials/">PCA - Principal Component Analysis Essentials</a>.</p>
<p><img src="https://www.sthda.com/english/sthda-upload/images/principal-component-methods/pca-in-r-using-ade4.png" alt="PCA in R using ade4" /></p>
<p>Contents:</p>
<div id="TOC">
<ul>
<li><a href="#install-and-load-packages">Install and load packages</a></li>
<li><a href="#data-sets">Data sets</a></li>
<li><a href="#compute-pca-using-dudi.pca">Compute PCA using dudi.pca()</a></li>
<li><a href="#visualize-pca-results">Visualize PCA results</a><ul>
<li><a href="#visualize-using-factoextra">Visualize using factoextra</a></li>
<li><a href="#visualize-using-ade4">Visualize using ade4</a></li>
</ul></li>
<li><a href="#access-to-the-pca-results">Access to the PCA results</a></li>
<li><a href="#predict-using-pca">Predict using PCA</a><ul>
<li><a href="#supplementary-individuals">Supplementary individuals</a></li>
<li><a href="#supplementary-variables">Supplementary variables</a></li>
</ul></li>
<li><a href="#read-more">Read more</a></li>
</ul>
</div>
<br/>
<div class = "small-block content-privileged-friends pca-book">
  <p>Related Book:</p>
        <a href = "https://www.sthda.com/english/web/5-bookadvisor/50-practical-guide-to-principal-component-methods-in-r/">
          <img src = "https://www.sthda.com/english/sthda-upload/images/principal-component-methods/principal-component-methods-cover-200px.png" /><br/>
      Practical Guide to Principal Component Methods in R
      </a>
</div>
<div class="spacer"></div>
<div id="install-and-load-packages" class="section level2">
<h2>Install and load packages</h2>
<p>Install:</p>
<pre class="r"><code>install.packages("magrittr")  # for piping %>%
install.packages("ade4")      # PCA computation
install.packages("factoextra")# PCA visualization</code></pre>
<p>Load:</p>
<pre class="r"><code>library(ade4)
library(factoextra)
library(magrittr)</code></pre>
</div>
<div id="data-sets" class="section level2">
<h2>Data sets</h2>
<ul>
<li>Demo data: <code>decathlon2</code> [in factoextra].</li>
<li>Data description available at: <a href="https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/112-pca-principal-component-analysis-essentials/#pca-data-format">PCA - Data format</a>.</li>
<li>Data contents:
<ul>
<li>Active individuals (rows 1 to 23) and active variables (columns 1 to 10). Used to compute the PCA.</li>
<li>Supplementary individuals (rows 24 to 27) and supplementary variables (columns 11 to 13). Their coordinates will be predicted using the PCA information and parameters obtained with active individuals/variables.</li>
</ul></li>
</ul>
<p><img src="https://www.sthda.com/english/sthda-upload/images/principal-component-methods/pca-decathlon-300dpi.png" alt="Principal component analysis data format" /></p>
<p>Load the data and extract only active individuals and variables:</p>
<pre class="r"><code>library("factoextra")
data(decathlon2)
decathlon2.active <- decathlon2[1:23, 1:10]
head(decathlon2.active[, 1:6])</code></pre>
<pre><code>##           X100m Long.jump Shot.put High.jump X400m X110m.hurdle
## SEBRLE     11.0      7.58     14.8      2.07  49.8         14.7
## CLAY       10.8      7.40     14.3      1.86  49.4         14.1
## BERNARD    11.0      7.23     14.2      1.92  48.9         15.0
## YURKOV     11.3      7.09     15.2      2.10  50.4         15.3
## ZSIVOCZKY  11.1      7.30     13.5      2.01  48.6         14.2
## McMULLEN   10.8      7.31     13.8      2.13  49.9         14.4</code></pre>
</div>
<div id="compute-pca-using-dudi.pca" class="section level2">
<h2>Compute PCA using dudi.pca()</h2>
<pre class="r"><code>library(ade4)
res.pca <- dudi.pca(decathlon2.active,
                    scannf = FALSE,   # Hide scree plot
                    nf = 5            # Number of components kept in the results
                    )</code></pre>
</div>
<div id="visualize-pca-results" class="section level2">
<h2>Visualize PCA results</h2>
<div id="visualize-using-factoextra" class="section level3">
<h3>Visualize using factoextra</h3>
<p>The factoextra R package creates ggplot2-based visualization.</p>
<ol style="list-style-type: decimal">
<li>Visualize <em>eigenvalues</em> (<em>scree plot</em>). Show the percentage of variances explained by each principal component.</li>
</ol>
<pre class="r"><code>fviz_eig(res.pca)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/014-pca-in-r-using-ade4-eigenvalue-scree-plot-1.png" width="576" /></p>
<ol start="2" style="list-style-type: decimal">
<li>Graph of individuals. Individuals with a similar profile are grouped together.</li>
</ol>
<pre class="r"><code>fviz_pca_ind(res.pca,
             col.ind = "cos2", # Color by the quality of representation
             gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"),
             repel = TRUE     # Avoid text overlapping
             )</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/014-pca-in-r-using-ade4-individual-plots-1.png" width="576" /></p>
<ol start="3" style="list-style-type: decimal">
<li>Graph of variables. Positive correlated variables point to the same side of the plot. Negative correlated variables point to opposite sides of the graph.</li>
</ol>
<pre class="r"><code>fviz_pca_var(res.pca,
             col.var = "contrib", # Color by contributions to the PC
             gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"),
             repel = TRUE     # Avoid text overlapping
             )</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/014-pca-in-r-using-ade4-variable-plots-1.png" width="576" /></p>
<ol start="4" style="list-style-type: decimal">
<li>Biplot of individuals and variables</li>
</ol>
<pre class="r"><code>fviz_pca_biplot(res.pca, repel = TRUE,
                col.var = "#2E9FDF", # Variables color
                col.ind = "#696969"  # Individuals color
                )</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/014-pca-in-r-using-ade4-biplots-1.png" width="576" /></p>
</div>
<div id="visualize-using-ade4" class="section level3">
<h3>Visualize using ade4</h3>
<p>The ade4 package creates R base plots.</p>
<pre class="r"><code># Scree plot
screeplot(res.pca, main = "Screeplot - Eigenvalues")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/014-pca-in-r-using-ade4-base-plot-1.png" width="576" /></p>
<pre class="r"><code># Correlation circle of variables
s.corcircle(res.pca$co)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/014-pca-in-r-using-ade4-base-plot-2.png" width="576" /></p>
<pre class="r"><code># Graph of individuals
s.label(res.pca$li, 
        xax = 1,     # Dimension 1
        yax = 2)     # Dimension 2</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/014-pca-in-r-using-ade4-base-plot-3.png" width="576" /></p>
<pre class="r"><code># Biplot of individuals and variables
scatter(res.pca,
        posieig = "none", # Hide the scree plot
        clab.row = 0      # Hide row labels
        )</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/014-pca-in-r-using-ade4-base-plot-4.png" width="576" /></p>
<pre><code>## NULL</code></pre>
</div>
</div>
<div id="access-to-the-pca-results" class="section level2">
<h2>Access to the PCA results</h2>
<pre class="r"><code>library(factoextra)
# Eigenvalues
eig.val <- get_eigenvalue(res.pca)
eig.val
  
# Results for Variables
res.var <- get_pca_var(res.pca)
res.var$coord          # Coordinates
res.var$contrib        # Contributions to the PCs
res.var$cos2           # Quality of representation 
# Results for individuals
res.ind <- get_pca_ind(res.pca)
res.ind$coord          # Coordinates
res.ind$contrib        # Contributions to the PCs
res.ind$cos2           # Quality of representation </code></pre>
</div>
<div id="predict-using-pca" class="section level2">
<h2>Predict using PCA</h2>
<p>In this section, we’ll show how to predict the coordinates of supplementary individuals and variables using only the information provided by the previously performed PCA.</p>
<div id="supplementary-individuals" class="section level3">
<h3>Supplementary individuals</h3>
<ol style="list-style-type: decimal">
<li>Data: rows 24 to 27 and columns 1 to to 10 [in decathlon2 data sets]. The new data must contain columns (variables) with the same names and in the same order as the active data used to compute PCA.</li>
</ol>
<pre class="r"><code># Data for the supplementary individuals
ind.sup <- decathlon2[24:27, 1:10]
ind.sup[, 1:6]</code></pre>
<pre><code>##         X100m Long.jump Shot.put High.jump X400m X110m.hurdle
## KARPOV   11.0      7.30     14.8      2.04  48.4         14.1
## WARNERS  11.1      7.60     14.3      1.98  48.7         14.2
## Nool     10.8      7.53     14.3      1.88  48.8         14.8
## Drews    10.9      7.38     13.1      1.88  48.5         14.0</code></pre>
<ol start="2" style="list-style-type: decimal">
<li>Predict the coordinates of new individuals data.</li>
</ol>
<pre class="r"><code>ind.sup.coord <- suprow(res.pca, ind.sup) %>%
  .$lisup
ind.sup.coord[, 1:4]</code></pre>
<pre><code>##          Axis1   Axis2 Axis3  Axis4
## KARPOV  -0.795  0.7795 1.633  1.724
## WARNERS  0.386 -0.1216 1.739 -0.706
## Nool     0.559  1.9775 0.483 -2.278
## Drews    1.109  0.0174 3.049 -1.534</code></pre>
<ol start="3" style="list-style-type: decimal">
<li>Graph of individuals including the supplementary individuals:</li>
</ol>
<pre class="r"><code># Plot of active individuals
p <- fviz_pca_ind(res.pca, repel = TRUE)
# Add supplementary individuals
fviz_add(p, ind.sup.coord, color ="blue")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/014-pca-in-r-using-ade4-supplementary-individuals-1.png" width="576" /></p>
</div>
<div id="supplementary-variables" class="section level3">
<h3>Supplementary variables</h3>
<div id="qualitative-categorical-variables" class="section level4">
<h4>Qualitative / categorical variables</h4>
<p>The data sets <code>decathlon2</code> contain a <em>supplementary qualitative variable</em> at columns 13 corresponding to the type of competitions.</p>
<p>Qualitative / categorical variables can be used to color individuals by groups. The grouping variable should be of same length as the number of active individuals (here 23).</p>
<ul>
<li>factoextra-based plots</li>
</ul>
<pre class="r"><code>groups <- as.factor(decathlon2$Competition[1:23])
fviz_pca_ind(res.pca,
             col.ind = groups, # color by groups
             palette = c("#00AFBB",  "#FC4E07"),
             addEllipses = TRUE, # Concentration ellipses
             ellipse.type = "confidence",
             legend.title = "Groups",
             repel = TRUE
             )</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/014-pca-in-r-using-ade4-color-by-groups-factoextra-1.png" width="576" /></p>
<ul>
<li>ade4-based plots:</li>
</ul>
<pre class="r"><code>groups <- as.factor(decathlon2$Competition[1:23])
s.class(res.pca$li,
        fac = groups,  # color by groups
        col = c("#00AFBB",  "#FC4E07")
        )</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/014-pca-in-r-using-ade4-color-by-groups-base-plots-1.png" width="576" /></p>
<pre class="r"><code># Biplot
res <- scatter(res.pca, clab.row = 0, posieig = "none")
s.class(res.pca$li, 
        fac = groups,
        col = c("#00AFBB",  "#FC4E07"),
        add.plot = TRUE,         # Add onto the scatter plot
        cstar = 0,               # Remove stars
        cellipse = 0             # Remove ellipses
        )</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/014-pca-in-r-using-ade4-color-by-groups-base-plots-2.png" width="576" /></p>
</div>
<div id="quantitative-variables" class="section level4">
<h4>Quantitative variables</h4>
<p>Data: columns 11:12. Should be of same length as the number of active individuals (here 23)</p>
<pre class="r"><code>quanti.sup <- decathlon2[1:23, 11:12, drop = FALSE]
head(quanti.sup)</code></pre>
<pre><code>##           Rank Points
## SEBRLE       1   8217
## CLAY         2   8122
## BERNARD      4   8067
## YURKOV       5   8036
## ZSIVOCZKY    7   8004
## McMULLEN     8   7995</code></pre>
<p>The coordinates of a given quantitative variable are calculated as the correlation between the quantitative variables and the principal components.</p>
<pre class="r"><code># Predict coordinates and compute cos2
quanti.coord <- supcol(res.pca, scale(quanti.sup)) %>%
  .$cosup
quanti.cos2 <- quanti.coord^2
# Graph of variables including supplementary variables
p <- fviz_pca_var(res.pca)
fviz_add(p, quanti.coord, color ="blue", geom="arrow")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/014-pca-in-r-using-ade4-quantitative-supplementary-variable-1.png" width="576" /></p>
</div>
</div>
</div>
<div id="read-more" class="section level2">
<h2>Read more</h2>
<p><a href="https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/112-pca-principal-component-analysis-essentials/">PCA - Principal Component Analysis Essentials</a>.</p>
</div>
</div><!--end rdoc-->

<!-- END HTML -->]]></description>
			<pubDate>Sun, 08 Oct 2017 00:37:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[Principal Component Analysis in R: prcomp vs princomp]]></title>
			<link>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/118-principal-component-analysis-in-r-prcomp-vs-princomp/</link>
			<guid>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/118-principal-component-analysis-in-r-prcomp-vs-princomp/</guid>
			<description><![CDATA[<!-- START HTML -->

  <div id="rdoc">
<p>This R tutorial describes how to perform a <strong>Principal Component Analysis</strong> (<strong>PCA</strong>) using the built-in <strong>R</strong> functions <strong>prcomp</strong>() and <strong>princomp</strong>(). You will learn how to <em>predict</em> new individuals and variables coordinates using PCA. We’ll also provide the theory behind <em>PCA results</em>.</p>
<p>Learn more about the basics and the interpretation of principal component analysis in our previous article: <a href="https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/112-pca-principal-component-analysis-essentials/">PCA - Principal Component Analysis Essentials</a>.</p>
<p><img src="https://www.sthda.com/english/sthda-upload/images/principal-component-methods/pca-in-r-prcomp-vs-princomp.png" alt="PCA in R: prcomp vs princomp" /></p>
<p>Contents:</p>
<div id="TOC">
<ul>
<li><a href="#general-methods-for-principal-component-analysis">General methods for principal component analysis</a></li>
<li><a href="#prcomp-and-princomp-functions">prcomp() and princomp() functions</a></li>
<li><a href="#package-for-pca-visualization">Package for PCA visualization</a></li>
<li><a href="#demo-data-sets">Demo data sets</a></li>
<li><a href="#compute-pca-in-r-using-prcomp">Compute PCA in R using prcomp()</a></li>
<li><a href="#access-to-the-pca-results">Access to the PCA results</a></li>
<li><a href="#predict-using-pca">Predict using PCA</a><ul>
<li><a href="#supplementary-individuals">Supplementary individuals</a></li>
<li><a href="#supplementary-variables">Supplementary variables</a></li>
</ul></li>
<li><a href="#theory-behind-pca-results">Theory behind PCA results</a><ul>
<li><a href="#pca-results-for-variables">PCA results for variables</a></li>
<li><a href="#pca-results-for-individuals">PCA results for individuals</a></li>
</ul></li>
</ul>
</div>
<br/>
<div class = "small-block content-privileged-friends pca-book">
  <p>Related Book:</p>
        <a href = "https://www.sthda.com/english/web/5-bookadvisor/50-practical-guide-to-principal-component-methods-in-r/">
          <img src = "https://www.sthda.com/english/sthda-upload/images/principal-component-methods/principal-component-methods-cover-200px.png" /><br/>
      Practical Guide to Principal Component Methods in R
      </a>
</div>
<div class="spacer"></div>
<div id="general-methods-for-principal-component-analysis" class="section level2">
<h2>General methods for principal component analysis</h2>
<p>There are two general methods to perform PCA in R :</p>
<ul>
<li><em>Spectral decomposition</em> which examines the covariances / correlations between variables</li>
<li><em>Singular value decomposition</em> which examines the covariances / correlations between individuals</li>
</ul>
<p>The function <strong>princomp</strong>() uses the spectral decomposition approach. The functions <strong>prcomp</strong>() and <strong>PCA</strong>()[FactoMineR] use the singular value decomposition (SVD).</p>
<div class="warning">
<p>
According to the R help, SVD has slightly better numerical accuracy. Therefore, the function prcomp() is preferred compared to princomp().
</p>
</div>
</div>
<div id="prcomp-and-princomp-functions" class="section level2">
<h2>prcomp() and princomp() functions</h2>
<p>The simplified format of these 2 functions are :</p>
<pre class="r"><code>prcomp(x, scale = FALSE)
princomp(x, cor = FALSE, scores = TRUE)</code></pre>
<ol style="list-style-type: decimal">
<li>Arguments for <strong>prcomp</strong>():</li>
</ol>
<ul>
<li><code>x</code>: a numeric matrix or data frame</li>
<li><code>scale</code>: a logical value indicating whether the variables should be scaled to have unit variance before the analysis takes place</li>
</ul>
<ol start="2" style="list-style-type: decimal">
<li>Arguments for <strong>princomp</strong>():</li>
</ol>
<ul>
<li><code>x</code>: a numeric matrix or data frame</li>
<li><code>cor</code>: a logical value. If TRUE, the data will be centered and scaled before the analysis</li>
<li><code>scores</code>: a logical value. If TRUE, the coordinates on each principal component are calculated</li>
</ul>
<p>The elements of the outputs returned by the functions prcomp() and princomp() includes :</p>
<table>
<colgroup>
<col width="17%" />
<col width="20%" />
<col width="61%" />
</colgroup>
<thead>
<tr class="header">
<th>prcomp() name</th>
<th>princomp() name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>sdev</td>
<td>sdev</td>
<td>the standard deviations of the principal components</td>
</tr>
<tr class="even">
<td>rotation</td>
<td>loadings</td>
<td>the matrix of variable loadings (columns are eigenvectors)</td>
</tr>
<tr class="odd">
<td>center</td>
<td>center</td>
<td>the variable means (means that were substracted)</td>
</tr>
<tr class="even">
<td>scale</td>
<td>scale</td>
<td>the variable standard deviations (the scaling applied to each variable )</td>
</tr>
<tr class="odd">
<td>x</td>
<td>scores</td>
<td>The coordinates of the individuals (observations) on the principal components.</td>
</tr>
</tbody>
</table>
<div class="success">
<p>
In the following sections, we’ll focus only on the function <strong>prcomp</strong>()
</p>
</div>
</div>
<div id="package-for-pca-visualization" class="section level2">
<h2>Package for PCA visualization</h2>
<p>We’ll use the <a href="https://www.sthda.com/english/wiki/factoextra-r-package-easy-multivariate-data-analyses-and-elegant-visualization">factoextra</a> R package to create a ggplot2-based elegant visualization.</p>
<ul>
<li>You can install it from CRAN:</li>
</ul>
<pre class="r"><code>install.packages("factoextra")</code></pre>
<ul>
<li>Or, install the latest developmental version from github:</li>
</ul>
<pre class="r"><code>if(!require(devtools)) install.packages("devtools")
devtools::install_github("kassambara/factoextra")</code></pre>
<ul>
<li>Load factoextra as follow:</li>
</ul>
<pre class="r"><code>library(factoextra)</code></pre>
</div>
<div id="demo-data-sets" class="section level2">
<h2>Demo data sets</h2>
<p>We’ll use the data sets <code>decathlon2</code> [in factoextra], which has been already described at: <a href="https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/112-pca-principal-component-analysis-essentials/#pca-data-format">PCA - Data format</a>.</p>
<p>Briefly, it contains:</p>
<ul>
<li>Active individuals (rows 1 to 23) and active variables (columns 1 to 10), which are used to perform the principal component analysis</li>
<li>Supplementary individuals (rows 24 to 27) and supplementary variables (columns 11 to 13), which coordinates will be predicted using the PCA information and parameters obtained with active individuals/variables.</li>
</ul>
<p><img src="https://www.sthda.com/english/sthda-upload/images/principal-component-methods/pca-decathlon-300dpi.png" alt="Principal component analysis data format" /></p>
<p>Load the data and extract only active individuals and variables:</p>
<pre class="r"><code>library("factoextra")
data(decathlon2)
decathlon2.active <- decathlon2[1:23, 1:10]
head(decathlon2.active[, 1:6])</code></pre>
<pre><code>##           X100m Long.jump Shot.put High.jump X400m X110m.hurdle
## SEBRLE     11.0      7.58     14.8      2.07  49.8         14.7
## CLAY       10.8      7.40     14.3      1.86  49.4         14.1
## BERNARD    11.0      7.23     14.2      1.92  48.9         15.0
## YURKOV     11.3      7.09     15.2      2.10  50.4         15.3
## ZSIVOCZKY  11.1      7.30     13.5      2.01  48.6         14.2
## McMULLEN   10.8      7.31     13.8      2.13  49.9         14.4</code></pre>
</div>
<div id="compute-pca-in-r-using-prcomp" class="section level2">
<h2>Compute PCA in R using prcomp()</h2>
<p>In this section we’ll provide an easy-to-use R code to compute and visualize PCA in R using the prcomp() function and the factoextra package.</p>
<ol style="list-style-type: decimal">
<li>Load factoextra for visualization</li>
</ol>
<pre class="r"><code>library(factoextra)</code></pre>
<ol start="2" style="list-style-type: decimal">
<li>Compute PCA</li>
</ol>
<pre class="r"><code>res.pca <- prcomp(decathlon2.active, scale = TRUE)</code></pre>
<ol start="3" style="list-style-type: decimal">
<li>Visualize <em>eigenvalues</em> (<em>scree plot</em>). Show the percentage of variances explained by each principal component.</li>
</ol>
<pre class="r"><code>fviz_eig(res.pca)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/013-pca-in-r-prcomp-vs-princomp-eigenvalue-scree-plot-1.png" width="576" /></p>
<ol start="4" style="list-style-type: decimal">
<li>Graph of individuals. Individuals with a similar profile are grouped together.</li>
</ol>
<pre class="r"><code>fviz_pca_ind(res.pca,
             col.ind = "cos2", # Color by the quality of representation
             gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"),
             repel = TRUE     # Avoid text overlapping
             )</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/013-pca-in-r-prcomp-vs-princomp-individual-plots-1.png" width="576" /></p>
<ol start="5" style="list-style-type: decimal">
<li>Graph of variables. Positive correlated variables point to the same side of the plot. Negative correlated variables point to opposite sides of the graph.</li>
</ol>
<pre class="r"><code>fviz_pca_var(res.pca,
             col.var = "contrib", # Color by contributions to the PC
             gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"),
             repel = TRUE     # Avoid text overlapping
             )</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/013-pca-in-r-prcomp-vs-princomp-variable-plots-1.png" width="576" /></p>
<ol start="6" style="list-style-type: decimal">
<li>Biplot of individuals and variables</li>
</ol>
<pre class="r"><code>fviz_pca_biplot(res.pca, repel = TRUE,
                col.var = "#2E9FDF", # Variables color
                col.ind = "#696969"  # Individuals color
                )</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/013-pca-in-r-prcomp-vs-princomp-biplots-1.png" width="576" /></p>
</div>
<div id="access-to-the-pca-results" class="section level2">
<h2>Access to the PCA results</h2>
<pre class="r"><code>library(factoextra)
# Eigenvalues
eig.val <- get_eigenvalue(res.pca)
eig.val
  
# Results for Variables
res.var <- get_pca_var(res.pca)
res.var$coord          # Coordinates
res.var$contrib        # Contributions to the PCs
res.var$cos2           # Quality of representation 
# Results for individuals
res.ind <- get_pca_ind(res.pca)
res.ind$coord          # Coordinates
res.ind$contrib        # Contributions to the PCs
res.ind$cos2           # Quality of representation </code></pre>
</div>
<div id="predict-using-pca" class="section level2">
<h2>Predict using PCA</h2>
<p>In this section, we’ll show how to predict the coordinates of supplementary individuals and variables using only the information provided by the previously performed PCA.</p>
<div id="supplementary-individuals" class="section level3">
<h3>Supplementary individuals</h3>
<ol style="list-style-type: decimal">
<li>Data: rows 24 to 27 and columns 1 to to 10 [in decathlon2 data sets]. The new data must contain columns (variables) with the same names and in the same order as the active data used to compute PCA.</li>
</ol>
<pre class="r"><code># Data for the supplementary individuals
ind.sup <- decathlon2[24:27, 1:10]
ind.sup[, 1:6]</code></pre>
<pre><code>##         X100m Long.jump Shot.put High.jump X400m X110m.hurdle
## KARPOV   11.0      7.30     14.8      2.04  48.4         14.1
## WARNERS  11.1      7.60     14.3      1.98  48.7         14.2
## Nool     10.8      7.53     14.3      1.88  48.8         14.8
## Drews    10.9      7.38     13.1      1.88  48.5         14.0</code></pre>
<ol start="2" style="list-style-type: decimal">
<li>Predict the coordinates of new individuals data. Use the R base function <em>predict</em>():</li>
</ol>
<pre class="r"><code>ind.sup.coord <- predict(res.pca, newdata = ind.sup)
ind.sup.coord[, 1:4]</code></pre>
<pre><code>##            PC1    PC2   PC3    PC4
## KARPOV   0.777 -0.762 1.597  1.686
## WARNERS -0.378  0.119 1.701 -0.691
## Nool    -0.547 -1.934 0.472 -2.228
## Drews   -1.085 -0.017 2.982 -1.501</code></pre>
<ol start="3" style="list-style-type: decimal">
<li>Graph of individuals including the supplementary individuals:</li>
</ol>
<pre class="r"><code># Plot of active individuals
p <- fviz_pca_ind(res.pca, repel = TRUE)
# Add supplementary individuals
fviz_add(p, ind.sup.coord, color ="blue")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/013-pca-in-r-prcomp-vs-princomp-supplementary-individuals-1.png" width="576" /></p>
<p>The predicted coordinates of individuals can be manually calculated as follow:</p>
<ol style="list-style-type: decimal">
<li>Center and scale the new individuals data using the center and the scale of the PCA</li>
<li>Calculate the predicted coordinates by multiplying the scaled values with the eigenvectors (loadings) of the principal components.</li>
</ol>
<p>The R code below can be used :</p>
<pre class="r"><code># Centering and scaling the supplementary individuals
ind.scaled <- scale(ind.sup, 
                    center = res.pca$center,
                    scale = res.pca$scale)
# Coordinates of the individividuals
coord_func <- function(ind, loadings){
  r <- loadings*ind
  apply(r, 2, sum)
}
pca.loadings <- res.pca$rotation
ind.sup.coord <- t(apply(ind.scaled, 1, coord_func, pca.loadings ))
ind.sup.coord[, 1:4]</code></pre>
<pre><code>##            PC1    PC2   PC3    PC4
## KARPOV   0.777 -0.762 1.597  1.686
## WARNERS -0.378  0.119 1.701 -0.691
## Nool    -0.547 -1.934 0.472 -2.228
## Drews   -1.085 -0.017 2.982 -1.501</code></pre>
</div>
<div id="supplementary-variables" class="section level3">
<h3>Supplementary variables</h3>
<div id="qualitative-categorical-variables" class="section level4">
<h4>Qualitative / categorical variables</h4>
<p>The data sets <code>decathlon2</code> contain a <em>supplementary qualitative variable</em> at columns 13 corresponding to the type of competitions.</p>
<p>Qualitative / categorical variables can be used to color individuals by groups. The grouping variable should be of same length as the number of active individuals (here 23).</p>
<pre class="r"><code>groups <- as.factor(decathlon2$Competition[1:23])
fviz_pca_ind(res.pca,
             col.ind = groups, # color by groups
             palette = c("#00AFBB",  "#FC4E07"),
             addEllipses = TRUE, # Concentration ellipses
             ellipse.type = "confidence",
             legend.title = "Groups",
             repel = TRUE
             )</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/013-pca-in-r-prcomp-vs-princomp-color-by-groups-1.png" width="576" /></p>
<p>Calculate the coordinates for the levels of grouping variables. The coordinates for a given group is calculated as the mean coordinates of the individuals in the group.</p>
<pre class="r"><code>library(magrittr) # for pipe %>%
library(dplyr)   # everything else
# 1. Individual coordinates
res.ind <- get_pca_ind(res.pca)
# 2. Coordinate of groups
coord.groups <- res.ind$coord %>%
  as_data_frame() %>%
  select(Dim.1, Dim.2) %>%
  mutate(competition = groups) %>%
  group_by(competition) %>%
  summarise(
    Dim.1 = mean(Dim.1),
    Dim.2 = mean(Dim.2)
    )
coord.groups</code></pre>
<pre><code>## # A tibble: 2 x 3
##   competition Dim.1  Dim.2
##        <fctr> <dbl>  <dbl>
## 1    Decastar -1.31 -0.119
## 2    OlympicG  1.20  0.109</code></pre>
</div>
<div id="quantitative-variables" class="section level4">
<h4>Quantitative variables</h4>
<p>Data: columns 11:12. Should be of same length as the number of active individuals (here 23)</p>
<pre class="r"><code>quanti.sup <- decathlon2[1:23, 11:12, drop = FALSE]
head(quanti.sup)</code></pre>
<pre><code>##           Rank Points
## SEBRLE       1   8217
## CLAY         2   8122
## BERNARD      4   8067
## YURKOV       5   8036
## ZSIVOCZKY    7   8004
## McMULLEN     8   7995</code></pre>
<p>The coordinates of a given quantitative variable are calculated as the correlation between the quantitative variables and the principal components.</p>
<pre class="r"><code># Predict coordinates and compute cos2
quanti.coord <- cor(quanti.sup, res.pca$x)
quanti.cos2 <- quanti.coord^2
# Graph of variables including supplementary variables
p <- fviz_pca_var(res.pca)
fviz_add(p, quanti.coord, color ="blue", geom="arrow")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/013-pca-in-r-prcomp-vs-princomp-quantitative-supplementary-variable-1.png" width="576" /></p>
</div>
</div>
</div>
<div id="theory-behind-pca-results" class="section level2">
<h2>Theory behind PCA results</h2>
<div id="pca-results-for-variables" class="section level3">
<h3>PCA results for variables</h3>
<p>Here we’ll show how to calculate the PCA results for variables: coordinates, cos2 and contributions:</p>
<ul>
<li><code>var.coord</code> = loadings * the component standard deviations</li>
<li><code>var.cos2</code> = var.coord^2</li>
<li><code>var.contrib</code>. The contribution of a variable to a given principal component is (in percentage) : (var.cos2 * 100) / (total cos2 of the component)</li>
</ul>
<pre class="r"><code># Helper function 
#::::::::::::::::::::::::::::::::::::::::
var_coord_func <- function(loadings, comp.sdev){
  loadings*comp.sdev
}
# Compute Coordinates
#::::::::::::::::::::::::::::::::::::::::
loadings <- res.pca$rotation
sdev <- res.pca$sdev
var.coord <- t(apply(loadings, 1, var_coord_func, sdev)) 
head(var.coord[, 1:4])</code></pre>
<pre><code>##                 PC1     PC2    PC3     PC4
## X100m        -0.851  0.1794 -0.302  0.0336
## Long.jump     0.794 -0.2809  0.191 -0.1154
## Shot.put      0.734 -0.0854 -0.518  0.1285
## High.jump     0.610  0.4652 -0.330  0.1446
## X400m        -0.702 -0.2902 -0.284  0.4308
## X110m.hurdle -0.764  0.0247 -0.449 -0.0169</code></pre>
<pre class="r"><code># Compute Cos2
#::::::::::::::::::::::::::::::::::::::::
var.cos2 <- var.coord^2
head(var.cos2[, 1:4])</code></pre>
<pre><code>##                PC1      PC2    PC3      PC4
## X100m        0.724 0.032184 0.0909 0.001127
## Long.jump    0.631 0.078881 0.0363 0.013315
## Shot.put     0.539 0.007294 0.2679 0.016504
## High.jump    0.372 0.216424 0.1090 0.020895
## X400m        0.492 0.084203 0.0804 0.185611
## X110m.hurdle 0.584 0.000612 0.2015 0.000285</code></pre>
<pre class="r"><code># Compute contributions
#::::::::::::::::::::::::::::::::::::::::
comp.cos2 <- apply(var.cos2, 2, sum)
contrib <- function(var.cos2, comp.cos2){var.cos2*100/comp.cos2}
var.contrib <- t(apply(var.cos2,1, contrib, comp.cos2))
head(var.contrib[, 1:4])</code></pre>
<pre><code>##                PC1     PC2   PC3     PC4
## X100m        17.54  1.7505  7.34  0.1376
## Long.jump    15.29  4.2904  2.93  1.6249
## Shot.put     13.06  0.3967 21.62  2.0141
## High.jump     9.02 11.7716  8.79  2.5499
## X400m        11.94  4.5799  6.49 22.6509
## X110m.hurdle 14.16  0.0333 16.26  0.0348</code></pre>
</div>
<div id="pca-results-for-individuals" class="section level3">
<h3>PCA results for individuals</h3>
<ul>
<li><code>ind.coord</code> = res.pca$x</li>
<li>Cos2 of individuals. Two steps:
<ul>
<li>Calculate the square distance between each individual and the PCA center of gravity: d2 = [(var1_ind_i - mean_var1)/sd_var1]^2 + …+ [(var10_ind_i - mean_var10)/sd_var10]^2 + …+..</li>
<li>Calculate the cos2 as ind.coord^2/d2</li>
</ul></li>
<li>Contributions of individuals to the principal components: 100 * (1 / number_of_individuals)*(ind.coord^2 / comp_sdev^2). Note that the sum of all the contributions per column is 100</li>
</ul>
<pre class="r"><code># Coordinates of individuals
#::::::::::::::::::::::::::::::::::
ind.coord <- res.pca$x
head(ind.coord[, 1:4])</code></pre>
<pre><code>##              PC1    PC2    PC3     PC4
## SEBRLE     0.191 -1.554 -0.628  0.0821
## CLAY       0.790 -2.420  1.357  1.2698
## BERNARD   -1.329 -1.612 -0.196 -1.9209
## YURKOV    -0.869  0.433 -2.474  0.6972
## ZSIVOCZKY -0.106  2.023  1.305 -0.0993
## McMULLEN   0.119  0.992  0.844  1.3122</code></pre>
<pre class="r"><code># Cos2 of individuals
#:::::::::::::::::::::::::::::::::
# 1. square of the distance between an individual and the
# PCA center of gravity
center <- res.pca$center
scale<- res.pca$scale
getdistance <- function(ind_row, center, scale){
  return(sum(((ind_row-center)/scale)^2))
  }
d2 <- apply(decathlon2.active,1,getdistance, center, scale)
# 2. Compute the cos2. The sum of each row is 1
cos2 <- function(ind.coord, d2){return(ind.coord^2/d2)}
ind.cos2 <- apply(ind.coord, 2, cos2, d2)
head(ind.cos2[, 1:4])</code></pre>
<pre><code>##               PC1    PC2     PC3     PC4
## SEBRLE    0.00753 0.4975 0.08133 0.00139
## CLAY      0.04870 0.4570 0.14363 0.12579
## BERNARD   0.19720 0.2900 0.00429 0.41182
## YURKOV    0.09611 0.0238 0.77823 0.06181
## ZSIVOCZKY 0.00157 0.5764 0.23975 0.00139
## McMULLEN  0.00218 0.1522 0.11014 0.26649</code></pre>
<pre class="r"><code># Contributions of individuals
#:::::::::::::::::::::::::::::::
contrib <- function(ind.coord, comp.sdev, n.ind){
  100*(1/n.ind)*ind.coord^2/comp.sdev^2
}
ind.contrib <- t(apply(ind.coord, 1, contrib, 
                       res.pca$sdev, nrow(ind.coord)))
head(ind.contrib[, 1:4])</code></pre>
<pre><code>##              PC1    PC2    PC3     PC4
## SEBRLE    0.0385  5.712  1.385  0.0357
## CLAY      0.6581 13.854  6.460  8.5557
## BERNARD   1.8627  6.144  0.135 19.5783
## YURKOV    0.7969  0.443 21.476  2.5794
## ZSIVOCZKY 0.0118  9.682  5.975  0.0523
## McMULLEN  0.0148  2.325  2.497  9.1353</code></pre>
</div>
</div>
</div><!--end rdoc-->

<!-- END HTML -->]]></description>
			<pubDate>Sun, 08 Oct 2017 00:19:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[HCPC - Hierarchical Clustering on Principal Components: Essentials]]></title>
			<link>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/117-hcpc-hierarchical-clustering-on-principal-components-essentials/</link>
			<guid>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/117-hcpc-hierarchical-clustering-on-principal-components-essentials/</guid>
			<description><![CDATA[<!-- START HTML -->

  <div id="rdoc">





<p><strong>Clustering</strong> is one of the important data mining methods for discovering knowledge in multivariate data sets. The goal is to identify groups (i.e. clusters) of similar objects within a data set of interest. To learn more about clustering, you can read our book entitled “Practical Guide to Cluster Analysis in R” (<a href="https://goo.gl/DmJ5y5" class="uri">https://goo.gl/DmJ5y5</a>).</p>
<p>Briefly, the two most common clustering strategies are:</p>
<ol style="list-style-type: decimal">
<li>Hierarchical clustering, used for identifying groups of similar observations in a data set.</li>
<li>Partitioning clustering such as k-means algorithm, used for splitting a data set into several groups.</li>
</ol>
<p>The <strong>HCPC</strong> (<strong>Hierarchical Clustering</strong> on <strong>Principal Components</strong>) approach allows us to combine the three standard methods used in multivariate data analyses <span class="citation">(Husson, Josse, and J. 2010)</span>:</p>
<ol style="list-style-type: decimal">
<li>Principal component methods (PCA, CA, MCA, FAMD, MFA),</li>
<li>Hierarchical clustering and</li>
<li>Partitioning clustering, particularly the k-means method.</li>
</ol>
<div class="block">
<p>
This chapter describes WHY and HOW to combine principal components and clustering methods. Finally, we demonstrate how to compute and visualize HCPC using R software.
</p>
</div>
<p>Contents:</p>
<div id="TOC">
<ul>
<li><a href="#why-hcpc">Why HCPC</a><ul>
<li><a href="#case-1-continuous-variables">Case 1: Continuous variables</a></li>
<li><a href="#case-2-clustering-on-categorical-data">Case 2: Clustering on categorical data</a></li>
<li><a href="#case-3-clustering-on-mixed-data">Case 3: Clustering on mixed data</a></li>
</ul></li>
<li><a href="#algorithm-of-the-hcpc-method">Algorithm of the HCPC method</a></li>
<li><a href="#computation">Computation</a><ul>
<li><a href="#r-packages">R packages</a></li>
<li><a href="#r-function">R function</a></li>
<li><a href="#case-of-continuous-variables">Case of continuous variables</a></li>
<li><a href="#case-of-categorical-variables">Case of categorical variables</a></li>
</ul></li>
<li><a href="#summary">Summary</a></li>
<li><a href="#further-reading">Further reading</a></li>
<li><a href="#references">References</a></li>
</ul>
</div>
<br/>
<div class = "small-block content-privileged-friends pca-book">
  <p>The Book:</p>
        <a href = "https://www.sthda.com/english/web/5-bookadvisor/50-practical-guide-to-principal-component-methods-in-r/">
          <img src = "https://www.sthda.com/english/sthda-upload/images/principal-component-methods/principal-component-methods-cover-200px.png" /><br/>
      Practical Guide to Principal Component Methods in R
      </a>
</div>
<div class="spacer"></div>


<div id="why-hcpc" class="section level2">
<h2>Why HCPC</h2>
<p>Combining principal component methods and clustering methods are useful in at least three situations.</p>
<div id="case-1-continuous-variables" class="section level3">
<h3>Case 1: Continuous variables</h3>
<p>In the situation where you have a multidimensional data set containing multiple continuous variables, the <em>principal component analysis</em> (PCA) can be used to reduce the dimension of the data into few continuous variables containing the most important information in the data. Next, you can perform cluster analysis on the PCA results.</p>
<p>The PCA step can be considered as a denoising step which can lead to a more stable clustering. This might be very useful if you have a large data set with multiple variables, such as in gene expression data.</p>
</div>
<div id="case-2-clustering-on-categorical-data" class="section level3">
<h3>Case 2: Clustering on categorical data</h3>
<p>In order to perform clustering analysis on <em>categorical data</em>, the correspondence analysis (CA, for analyzing contingency table) and the multiple correspondence analysis (MCA, for analyzing multidimensional categorical variables) can be used to transform categorical variables into a set of few continuous variables (the principal components). The cluster analysis can be then applied on the (M)CA results.</p>
<p>In this case, the (M)CA method can be considered as pre-processing steps which allow to compute clustering on categorical data.</p>
</div>
<div id="case-3-clustering-on-mixed-data" class="section level3">
<h3>Case 3: Clustering on mixed data</h3>
<p>When you have a mixed data of continuous and categorical variables, you can first perform FAMD (factor analysis of mixed data) or MFA (multiple factor analysis). Next, you can apply cluster analysis on the FAMD/MFA outputs.</p>
</div>
</div>
<div id="algorithm-of-the-hcpc-method" class="section level2">
<h2>Algorithm of the HCPC method</h2>
<p>The algorithm of the HCPC method, as implemented in the FactoMineR package, can be summarized as follow:</p>
<ol style="list-style-type: decimal">
<li><p><code>Compute principal component methods</code>: PCA, (M)CA or MFA depending on the types of variables in the data set and the structure of the data set. At this step, you can choose the number of dimensions to be retained in the output by specifying the argument <em>ncp</em>. The default value is 5.</p></li>
<li><p><code>Compute hierarchical clustering</code>: Hierarchical clustering is performed using the Ward’s criterion on the selected principal components. Ward criterion is used in the hierarchical clustering because it is based on the multidimensional variance like principal component analysis.</p></li>
<li><p><code>Choose the number of clusters based on the hierarchical tree</code>: An initial partitioning is performed by cutting the hierarchical tree.</p></li>
<li><p><code>Perform K-means clustering</code> to improve the initial partition obtained from hierarchical clustering. The final partitioning solution, obtained after consolidation with k-means, can be (slightly) different from the one obtained with the hierarchical clustering.</p></li>
</ol>
</div>
<div id="computation" class="section level2">
<h2>Computation</h2>
<div id="r-packages" class="section level3">
<h3>R packages</h3>
<p>We’ll use two R packages: i) <em>FactoMineR</em> for computing HCPC and ii) <em>factoextra</em> for visualizing the results.</p>
<p>To install the packages, type this:</p>
<pre class="r"><code>install.packages(c("FactoMineR", "factoextra"))</code></pre>
<p>After the installation, load the packages as follow:</p>
<pre class="r"><code>library(factoextra)
library(FactoMineR)</code></pre>
</div>
<div id="r-function" class="section level3">
<h3>R function</h3>
<p>The function <em>HCPC</em>() [in <em>FactoMineR</em> package] can be used to compute hierarchical clustering on principal components.</p>
<p>A simplified format is:</p>
<pre class="r"><code>HCPC(res, nb.clust = 0, min = 3, max = NULL, graph = TRUE)</code></pre>
<ul>
<li><code>res</code>: Either the result of a factor analysis or a data frame.</li>
<li><code>nb.clust</code>: an integer specifying the number of clusters. Possible values are:
<ul>
<li><code>0</code>: the tree is cut at the level the user clicks on</li>
<li><code>-1</code>: the tree is automatically cut at the suggested level</li>
<li><code>Any positive integer</code>: the tree is cut with nb.clusters clusters</li>
</ul></li>
<li><code>min, max</code>: the minimum and the maximum number of clusters to be generated, respectively</li>
<li><code>graph</code>: if TRUE, graphics are displayed</li>
</ul>
</div>
<div id="case-of-continuous-variables" class="section level3">
<h3>Case of continuous variables</h3>
<p>We start by computing again the principal component analysis (PCA). The argument <code>ncp = 3</code> is used in the function <code>PCA()</code> to keep only the first three principal components. Next, the HCPC is applied on the result of the PCA.</p>
<pre class="r"><code>library(FactoMineR)
# Compute PCA with ncp = 3
res.pca <- PCA(USArrests, ncp = 3, graph = FALSE)
# Compute hierarchical clustering on principal components
res.hcpc <- HCPC(res.pca, graph = FALSE)</code></pre>
<p>To visualize the dendrogram generated by the hierarchical clustering, we’ll use the function <code>fviz_dend()</code> [<em>factoextra</em> package]:</p>
<pre class="r"><code>fviz_dend(res.hcpc, 
          cex = 0.7,                     # Label size
          palette = "jco",               # Color palette see ?ggpubr::ggpar
          rect = TRUE, rect_fill = TRUE, # Add rectangle around groups
          rect_border = "jco",           # Rectangle color
          labels_track_height = 0.8      # Augment the room for labels
          )</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/011-hcpc-hierarchical-clustering-on-principal-components-dendrogram-1.png" width="624" /></p>
<div class="success">
<p>
The dendrogram suggests 4 clusters solution.
</p>
</div>
<p>It’s possible to visualize individuals on the principal component map and to color individuals according to the cluster they belong to. The function <code>fviz_cluster()</code> [in <em>factoextra</em>] can be used to visualize individuals clusters.</p>
<pre class="r"><code>fviz_cluster(res.hcpc,
             repel = TRUE,            # Avoid label overlapping
             show.clust.cent = TRUE, # Show cluster centers
             palette = "jco",         # Color palette see ?ggpubr::ggpar
             ggtheme = theme_minimal(),
             main = "Factor map"
             )</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/011-hcpc-hierarchical-clustering-on-principal-components-hcpc-individuals-map-1.png" width="624" /></p>
<p>You can also draw a three dimensional plot combining the hierarchical clustering and the factorial map using the R base function <code>plot()</code>:</p>
<pre class="r"><code># Principal components + tree
plot(res.hcpc, choice = "3D.map")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/011-hcpc-hierarchical-clustering-on-principal-components-3d-map-1.png" width="624" /></p>
<p>The function <code>HCPC()</code> returns a list containing:</p>
<ul>
<li><code>data.clust</code>: The original data with a supplementary column called class containing the partition.</li>
<li><code>desc.var</code>: The variables describing clusters</li>
<li><code>desc.ind</code>: The more typical individuals of each cluster</li>
<li><code>desc.axes</code>: The axes describing clusters</li>
</ul>
<p>To display the original data with cluster assignments, type this:</p>
<pre class="r"><code>head(res.hcpc$data.clust, 10)</code></pre>
<pre><code>##             Murder Assault UrbanPop Rape clust
## Alabama       13.2     236       58 21.2     3
## Alaska        10.0     263       48 44.5     4
## Arizona        8.1     294       80 31.0     4
## Arkansas       8.8     190       50 19.5     3
## California     9.0     276       91 40.6     4
## Colorado       7.9     204       78 38.7     4
## Connecticut    3.3     110       77 11.1     2
## Delaware       5.9     238       72 15.8     2
## Florida       15.4     335       80 31.9     4
## Georgia       17.4     211       60 25.8     3</code></pre>
<p>In the table above, the last column contains the cluster assignments.</p>
<p>To display quantitative variables that describe the most each cluster, type this:</p>
<pre class="r"><code>res.hcpc$desc.var$quanti</code></pre>
<p>Here, we show only some columns of interest: “Mean in category”, “Overall Mean”, “p.value”</p>
<pre><code>## $`1`
##          Mean in category Overall mean  p.value
## UrbanPop             52.1        65.54 9.68e-05
## Murder                3.6         7.79 5.57e-05
## Rape                 12.2        21.23 5.08e-05
## Assault              78.5       170.76 3.52e-06
## 
## $`2`
##          Mean in category Overall mean p.value
## UrbanPop            73.88        65.54 0.00522
## Murder               5.66         7.79 0.01759
## 
## $`3`
##          Mean in category Overall mean  p.value
## Murder               13.9         7.79 1.32e-05
## Assault             243.6       170.76 6.97e-03
## UrbanPop             53.8        65.54 1.19e-02
## 
## $`4`
##          Mean in category Overall mean  p.value
## Rape                 33.2        21.23 8.69e-08
## Assault             257.4       170.76 1.32e-05
## UrbanPop             76.0        65.54 2.45e-03
## Murder               10.8         7.79 3.58e-03</code></pre>
<div class="block">
<p>
From the output above, it can be seen that:
</p>
<ul>
<li>
<p>
the variables UrbanPop, Murder, Rape and Assault are most significantly associated with the cluster 1. For example, the mean value of the Assault variable in cluster 1 is 78.53 which is less than it’s overall mean (170.76) across all clusters. Therefore, It can be conclude that the cluster 1 is characterized by a low rate of Assault compared to all clusters.
</p>
</li>
<li>
<p>
the variables UrbanPop and Murder are most significantly associated with the cluster 2.
</p>
</li>
</ul>
<p>
…and so on …
</p>
</div>
<p>Similarly, to show principal dimensions that are the most associated with clusters, type this:</p>
<pre class="r"><code>res.hcpc$desc.axes$quanti</code></pre>
<pre><code>## $`1`
##       Mean in category Overall mean  p.value
## Dim.1            -1.96    -5.64e-16 2.27e-07
## 
## $`2`
##       Mean in category Overall mean  p.value
## Dim.2            0.743    -5.37e-16 0.000336
## 
## $`3`
##       Mean in category Overall mean  p.value
## Dim.1            1.061    -5.64e-16 3.96e-02
## Dim.3            0.397     3.54e-17 4.25e-02
## Dim.2           -1.477    -5.37e-16 5.72e-06
## 
## $`4`
##       Mean in category Overall mean  p.value
## Dim.1             1.89    -5.64e-16 6.15e-07</code></pre>
<div class="success">
<p>
The results above indicate that, individuals in clusters 1 and 4 have high coordinates on axes 1. Individuals in cluster 2 have high coordinates on the second axis. Individuals who belong to the third cluster have high coordinates on axes 1, 2 and 3.
</p>
</div>
<p>Finally, representative individuals of each cluster can be extracted as follow:</p>
<pre class="r"><code>res.hcpc$desc.ind$para</code></pre>
<pre><code>## Cluster: 1
##         Idaho  South Dakota         Maine          Iowa New Hampshire 
##         0.367         0.499         0.501         0.553         0.589 
## -------------------------------------------------------- 
## Cluster: 2
##         Ohio     Oklahoma Pennsylvania       Kansas      Indiana 
##        0.280        0.505        0.509        0.604        0.710 
## -------------------------------------------------------- 
## Cluster: 3
##        Alabama South Carolina        Georgia      Tennessee      Louisiana 
##          0.355          0.534          0.614          0.852          0.878 
## -------------------------------------------------------- 
## Cluster: 4
##   Michigan    Arizona New Mexico   Maryland      Texas 
##      0.325      0.453      0.518      0.901      0.924</code></pre>
<div class="success">
<p>
For each cluster, the top 5 closest individuals to the cluster center is shown. The distance between each individual and the cluster center is provided. For example, representative individuals for cluster 1 include: Idaho, South Dakota, Maine, Iowa and New Hampshire.
</p>
</div>
</div>
<div id="case-of-categorical-variables" class="section level3">
<h3>Case of categorical variables</h3>
<p>For categorical variables, compute CA or MCA and then apply the function <code>HCPC()</code> on the results as described above.</p>
<p>Here, we’ll use the <code>tea</code> data [in <em>FactoMineR</em>] as demo data set: Rows represent the individuals and columns represent categorical variables.</p>
<p>We start, by performing an MCA on the individuals. We keep the first 20 axes of the MCA which retain 87% of the information.</p>
<pre class="r"><code># Loading data
library(FactoMineR)
data(tea)

# Performing MCA
res.mca <- MCA(tea, 
               ncp = 20,            # Number of components kept
               quanti.sup = 19,     # Quantitative supplementary variables
               quali.sup = c(20:36), # Qualitative supplementary variables
               graph=FALSE)</code></pre>
<p>Next, we apply hierarchical clustering on the results of the MCA:</p>
<pre class="r"><code>res.hcpc <- HCPC (res.mca, graph = FALSE, max = 3)</code></pre>
<p>The results can be visualized as follow:</p>
<pre class="r"><code># Dendrogram
fviz_dend(res.hcpc, show_labels = FALSE)

# Individuals facor map
fviz_cluster(res.hcpc, geom = "point", main = "Factor map")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/011-hcpc-hierarchical-clustering-on-principal-components-plot-categorical-variables-1.png" width="316.8" /><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/011-hcpc-hierarchical-clustering-on-principal-components-plot-categorical-variables-2.png" width="316.8" /></p>
<p>As mentioned above, clusters can be described by i) variables and/or categories, ii) principal axes and iii) individuals. In the example below, we display only a subset of the results.</p>
<ul>
<li>Description by variables and categories</li>
</ul>
<pre class="r"><code># Description by variables
res.hcpc$desc.var$test.chi2</code></pre>
<pre><code>##          p.value df
## where   8.47e-79  4
## how     3.14e-47  4
## price   1.86e-28 10
## tearoom 9.62e-19  2</code></pre>
<pre class="r"><code># Description by variable categories
res.hcpc$desc.var$category</code></pre>
<pre><code>## $`1`
##                     Cla/Mod Mod/Cla Global  p.value
## where=chain store      85.9    93.8   64.0 2.09e-40
## how=tea bag            84.1    81.2   56.7 1.48e-25
## tearoom=Not.tearoom    70.7    97.2   80.7 1.08e-18
## price=p_branded        83.2    44.9   31.7 1.63e-09
## 
## $`2`
##                 Cla/Mod Mod/Cla Global  p.value
## where=tea shop     90.0    84.4   10.0 3.70e-30
## how=unpackaged     66.7    75.0   12.0 5.35e-20
## price=p_upscale    49.1    81.2   17.7 2.39e-17
## Tea=green          27.3    28.1   11.0 4.44e-03
## 
## $`3`
##                            Cla/Mod Mod/Cla Global  p.value
## where=chain store+tea shop    85.9    72.8   26.0 5.73e-34
## how=tea bag+unpackaged        67.0    68.5   31.3 1.38e-19
## tearoom=tearoom               77.6    48.9   19.3 1.25e-16
## pub=pub                       63.5    43.5   21.0 1.13e-09</code></pre>
<p>The variables that characterize the most the clusters are the variables “where” and “how”. Each cluster is characterized by a category of the variables “where” and “how”. For example, individuals who belong to the first cluster buy tea as tea bag in chain stores.</p>
<ul>
<li>Description by principal components</li>
</ul>
<pre class="r"><code>res.hcpc$desc.axes</code></pre>
<ul>
<li>Description by individuals</li>
</ul>
<pre class="r"><code>res.hcpc$desc.ind$para</code></pre>
</div>
</div>
<div id="summary" class="section level2">
<h2>Summary</h2>
<p>We described how to compute hierarchical clustering on principal components (HCPC). This approach is useful in situations, including:</p>
<ul>
<li><p>When you have a large data set containing continuous variables, a principal component analysis can be used to reduce the dimension of the data before the hierarchical clustering analysis.</p></li>
<li><p>When you have a data set containing categorical variables, a (Multiple)Correspondence analysis can be used to transform the categorical variables into few continuous principal components, which can be used as the input of the cluster analysis.</p></li>
</ul>
<p>We used the FactoMineR package to compute the HCPC and the factoextra R package for ggplot2-based elegant data visualization.</p>
</div>
<div id="further-reading" class="section level2">
<h2>Further reading</h2>
<ul>
<li>Practical guide to cluster analysis in R (Book). <a href="https://goo.gl/DmJ5y5" class="uri">https://goo.gl/DmJ5y5</a></li>
<li>HCPC: Hierarchical Clustering on Principal Components (Videos). <a href="https://goo.gl/jdYGoK" class="uri">https://goo.gl/jdYGoK</a></li>
</ul>
</div>
<div id="references" class="section level2 unnumbered">
<h2>References</h2>
<div id="refs" class="references">
<div id="ref-husson2010">
<p>Husson, François, J. Josse, and Pagès J. 2010. “Principal Component Methods - Hierarchical Clustering - Partitional Clustering: Why Would We Need to Choose for Visualizing Data?” <em>Unpublished Data</em>. <a href="https://www.sthda.com/english/upload/hcpc_husson_josse.pdf" class="uri">https://www.sthda.com/english/upload/hcpc_husson_josse.pdf</a>.</p>
</div>
</div>
</div>


</div><!--end rdoc-->


<!-- END HTML -->]]></description>
			<pubDate>Mon, 25 Sep 2017 03:13:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[MFA - Multiple Factor Analysis in R: Essentials]]></title>
			<link>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/116-mfa-multiple-factor-analysis-in-r-essentials/</link>
			<guid>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/116-mfa-multiple-factor-analysis-in-r-essentials/</guid>
			<description><![CDATA[<!-- START HTML -->

  <div id="rdoc">





<p><strong>Multiple factor analysis</strong> (<strong>MFA</strong>) <span class="citation">(J. Pagès 2002)</span> is a multivariate data analysis method for summarizing and visualizing a complex data table in which individuals are described by several sets of variables (quantitative and /or qualitative) structured into groups. It takes into account the contribution of all active groups of variables to define the distance between individuals.

The number of variables in each group may differ and the nature of the variables (qualitative or quantitative) can vary from one group to the other but the variables should be of the same nature in a given group <span class="citation">(Abdi and Williams 2010)</span>.</p>
<p>MFA may be considered as a general factor analysis. Roughly, the core of MFA is based on:</p>
<ul>
<li>Principal component analysis (PCA) (Chapter @ref(principal-component-analysis)) when variables are quantitative,</li>
<li>Multiple correspondence analysis (MCA) (Chapter @ref(multiple-correspondence-analysis)) when variables are qualitative.</li>
</ul>
<p>This global analysis, where multiple sets of variables are simultaneously considered, requires to balance the influences of each set of variables. Therefore, in MFA, the variables are weighted during the analysis. Variables in the same group are normalized using the same weighting value, which can vary from one group to another. Technically, MFA assigns to each variable of group j, a weight equal to the inverse of the first eigenvalue of the analysis (PCA or MCA according to the type of variable) of the group j.</p>
<p>Multiple factor analysis can be used in a variety of fields <span class="citation">(J. Pagès 2002)</span>, where the variables are organized into groups:</p>
<ol style="list-style-type: decimal">
<li><p><em>Survey analysis</em>, where an individual is a person; a variable is a question. Questions are organized by themes (groups of questions).</p></li>
<li><p><em>Sensory analysis</em>, where an individual is a food product. A first set of variables includes <em>sensory variables</em> (sweetness, bitterness, etc.); a second one includes chemical variables (pH, glucose rate, etc.).</p></li>
<li><p><em>Ecology</em>, where an individual is an observation place. A first set of variables describes soil characteristics ; a second one describes flora.</p></li>
<li><em>Times series</em>, where several individuals are observed at different dates. In this situation, there is commonly two ways of defining groups of variables:
<ul>
<li>generally, variables observed at the same time (date) are gathered together.</li>
<li>When variables are the same from one date to the others, each set can gather the different dates for one variable.</li>
</ul></li>
</ol>
<p>In the current chapter, we show how to compute and visualize multiple factor analysis in R software using <em>FactoMineR</em> (for the analysis) and <em>factoextra</em> (for data visualization). Additional, we’ll show how to reveal the most important variables that contribute the most in explaining the variations in the data set.</p>
<p>Contents:</p>
<div id="TOC">
<ul>
<li><a href="#computation">Computation</a><ul>
<li><a href="#r-packages">R packages</a></li>
<li><a href="#data-format">Data format</a></li>
<li><a href="#r-code">R code</a></li>
</ul></li>
<li><a href="#visualization-and-interpretation">Visualization and interpretation</a><ul>
<li><a href="#eigenvalues-variances">Eigenvalues / Variances</a></li>
<li><a href="#graph-of-variables">Graph of variables</a></li>
<li><a href="#graph-of-individuals">Graph of individuals</a></li>
<li><a href="#graph-of-partial-individuals">Graph of partial individuals</a></li>
<li><a href="#graph-of-partial-axes">Graph of partial axes</a></li>
</ul></li>
<li><a href="#summary">Summary</a></li>
<li><a href="#further-reading">Further reading</a></li>
<li><a href="#references">References</a></li>
</ul>
</div>
<br/>
<div class = "small-block content-privileged-friends pca-book">
  <p>The Book:</p>
        <a href = "https://www.sthda.com/english/web/5-bookadvisor/50-practical-guide-to-principal-component-methods-in-r/">
          <img src = "https://www.sthda.com/english/sthda-upload/images/principal-component-methods/principal-component-methods-cover-200px.png" /><br/>
      Practical Guide to Principal Component Methods in R
      </a>
</div>
<div class="spacer"></div>


<div id="computation" class="section level2">
<h2>Computation</h2>
<div id="r-packages" class="section level3">
<h3>R packages</h3>
<p>Install FactoMineR and factoextra as follow:</p>
<pre class="r"><code>install.packages(c("FactoMineR", "factoextra"))</code></pre>
<p>Load the packages:</p>
<pre class="r"><code>library("FactoMineR")
library("factoextra")</code></pre>
</div>
<div id="data-format" class="section level3">
<h3>Data format</h3>
<p>We’ll use the demo data sets <code>wine</code> available in <code>FactoMineR</code> package. This data set is about a sensory evaluation of wines by different judges.</p>
<pre class="r"><code>library("FactoMineR")
data(wine)
colnames(wine)</code></pre>
<pre><code>##  [1] "Label"                         "Soil"                         
##  [3] "Odor.Intensity.before.shaking" "Aroma.quality.before.shaking" 
##  [5] "Fruity.before.shaking"         "Flower.before.shaking"        
##  [7] "Spice.before.shaking"          "Visual.intensity"             
##  [9] "Nuance"                        "Surface.feeling"              
## [11] "Odor.Intensity"                "Quality.of.odour"             
## [13] "Fruity"                        "Flower"                       
## [15] "Spice"                         "Plante"                       
## [17] "Phenolic"                      "Aroma.intensity"              
## [19] "Aroma.persistency"             "Aroma.quality"                
## [21] "Attack.intensity"              "Acidity"                      
## [23] "Astringency"                   "Alcohol"                      
## [25] "Balance"                       "Smooth"                       
## [27] "Bitterness"                    "Intensity"                    
## [29] "Harmony"                       "Overall.quality"              
## [31] "Typical"</code></pre>
<p>An image of the data is shown below:</p>
<p><img src="https://www.sthda.com/english/sthda-upload/images/principal-component-methods/wine.png" alt="Data format for Multiple Factor analysis" /></p>
<p>(Image source, FactoMineR, <a href="http://factominer.free.fr" class="uri">http://factominer.free.fr</a>)</p>
<p>The data contains 21 rows (wines, <code>individuals</code>) and 31 columns (<code>variables</code>):</p>
<ul>
<li>The first two columns are <em>categorical variables</em>: <code>label</code> (Saumur, Bourgueil or Chinon) and <code>soil</code> (Reference, Env1, Env2 or Env4).</li>
<li>The 29 next columns are <em>continuous sensory variables</em>. For each wine, the value is the mean score for all the judges.</li>
</ul>
<div class="success">
<p>
The goal of this study is to analyze the characteristics of the wines.
</p>
</div>
<p>The variables are organized in groups as follow:</p>
<ol style="list-style-type: decimal">
<li><p>First group - A group of categorical variables specifying the <code>origin of the wines</code>, including the variables <code>label</code> and <code>soil</code> corresponding to the <code>first 2 columns</code> in the data table. In FactoMineR terminology, the arguments <code>group = 2</code> is used to define the first 2 columns as a group.</p></li>
<li><p>Second group - A group of continuous variables, describing the <code>odor of the wines before shaking</code>, including the variables: Odor.Intensity.before.shaking, Aroma.quality.before.shaking, Fruity.before.shaking, Flower.before.shaking and Spice.before.shaking. These variables corresponds to the <code>next 5 columns</code> after the first group. FactoMineR terminology: <code>group = 5</code>.</p></li>
<li><p>Third group - A group of continuous variables quantifying the <code>visual inspection of the wines</code>, including the variables: Visual.intensity, Nuance and Surface.feeling. These variables corresponds to the <code>next 3 columns</code> after the second group. FactoMineR terminology: <code>group = 3</code>.</p></li>
<li><p>Fourth group - A group of continuous variables concerning the <code>odor of the wines after shaking</code>, including the variables: Odor.Intensity, Quality.of.odour, Fruity, Flower, Spice, Plante, Phenolic, Aroma.intensity, Aroma.persistency and Aroma.quality. These variables corresponds to the <code>next 10 columns</code> after the third group. FactoMineR terminology: <code>group = 10</code>.</p></li>
<li><p>Fith group - A group of continuous variables evaluating the <code>taste of the wines</code>, including the variables Attack.intensity, Acidity, Astringency, Alcohol, Balance, Smooth, Bitterness, Intensity and Harmony. These variables corresponds to the <code>next 9 columns</code> after the fourth group. FactoMineR terminology: <code>group = 9</code>.</p></li>
<li><p>Sixth group - A group of continuous variables concerning the <code>overall judgement of the wines</code>, including the variables Overall.quality and Typical. These variables corresponds to the <code>next 2 columns</code> after the fith group. FactoMineR terminology: <code>group = 2</code>.</p></li>
</ol>
<div class="success">
<p>
In summary:
</p>
<ul>
<li>
<p>
We have 6 groups of variables, which can be specified to the FactoMineR as follow: <em>group = c(2, 5, 3, 10, 9, 2)</em>.
</p>
</li>
<li>
<p>
These groups can be named as follow: <em>name.group = c(“origin”, “odor”, “visual”, “odor.after.shaking”, “taste”, “overall”)</em>.
</p>
</li>
<li>
<p>
Among the 6 groups of variables, one is categorical and five groups contain continuous variables. It’s recommended, to standardize the continuous variables during the analysis. Standardization makes variables comparable, in the situation where the variables are measured in different units. In FactoMineR, the argument <code>type = “s”</code> specifies that a given group of variables should be standardized. If you don’t want standardization, use <code>type = “c”</code>. To specify categorical variables, <code>type = “n”</code> is used. In our example, we’ll use <code>type = c(“n”, “s”, “s”, “s”, “s”, “s”)</code>.
</p>
</li>
</ul>
</div>
</div>
<div id="r-code" class="section level3">
<h3>R code</h3>
<p>The function <em>MFA</em>()[<em>FactoMiner</em> package] can be used. A simplified format is :</p>
<pre class="r"><code>MFA (base, group, type = rep("s",length(group)), ind.sup = NULL, 
    name.group = NULL, num.group.sup = NULL, graph = TRUE)</code></pre>
<ul>
<li><code>base</code> : a data frame with n rows (individuals) and p columns (variables)</li>
<li><code>group</code>: a vector with the number of variables in each group.</li>
<li><code>type</code>: the type of variables in each group. By default, all variables are quantitative and scaled to unit variance. Allowed values include:
<ul>
<li>“c” or “s” for quantitative variables. If “s”, the variables are scaled to unit variance.</li>
<li>“n” for categorical variables.</li>
<li>“f” for frequencies (from a contingency tables).</li>
</ul></li>
<li><code>ind.sup</code>: a vector indicating the indexes of the supplementary individuals.</li>
<li><code>name.group</code>: a vector containing the name of the groups (by default, NULL and the group are named group.1, group.2 and so on).</li>
<li><code>num.group.sup</code>: the indexes of the illustrative groups (by default, NULL and no group are illustrative).</li>
<li><code>graph</code> : a logical value. If TRUE a graph is displayed.</li>
</ul>
<p>The R code below performs the MFA on the wines data using the groups: odor, visual, odor after shaking and taste. These groups are named <code>active groups</code>. The remaining group of variables - origin (the first group) and overall judgement (the sixth group) - are named <code>supplementary groups</code>; <code>num.group.sup = c(1, 6)</code>:</p>
<pre class="r"><code>library(FactoMineR)
data(wine)
res.mfa <- MFA(wine, 
               group = c(2, 5, 3, 10, 9, 2), 
               type = c("n", "s", "s", "s", "s", "s"),
               name.group = c("origin","odor","visual",
                              "odor.after.shaking", "taste","overall"),
               num.group.sup = c(1, 6),
               graph = FALSE)</code></pre>
<p>The output of the <em>MFA</em>() function is a list including :</p>
<pre class="r"><code>print(res.mfa)</code></pre>
<pre><code>## **Results of the Multiple Factor Analysis (MFA)**
## The analysis was performed on 21 individuals, described by 31 variables
## *Results are available in the following objects :
## 
##    name                
## 1  "$eig"              
## 2  "$separate.analyses"
## 3  "$group"            
## 4  "$partial.axes"     
## 5  "$inertia.ratio"    
## 6  "$ind"              
## 7  "$quanti.var"       
## 8  "$quanti.var.sup"   
## 9  "$quali.var.sup"    
## 10 "$summary.quanti"   
## 11 "$summary.quali"    
## 12 "$global.pca"       
##    description                                           
## 1  "eigenvalues"                                         
## 2  "separate analyses for each group of variables"       
## 3  "results for all the groups"                          
## 4  "results for the partial axes"                        
## 5  "inertia ratio"                                       
## 6  "results for the individuals"                         
## 7  "results for the quantitative variables"              
## 8  "results for the quantitative supplementary variables"
## 9  "results for the categorical supplementary variables" 
## 10 "summary for the quantitative variables"              
## 11 "summary for the categorical variables"               
## 12 "results for the global PCA"</code></pre>
</div>
</div>
<div id="visualization-and-interpretation" class="section level2">
<h2>Visualization and interpretation</h2>
<p>We’ll use the <em>factoextra</em> R package to help in the interpretation and the visualization of the multiple factor analysis.</p>
<p>The functions below [in <em>factoextra</em> package] will be used:</p>
<ul>
<li><code>get_eigenvalue(res.mfa)</code>: Extract the eigenvalues/variances retained by each dimension (axis).</li>
<li><code>fviz_eig(res.mfa)</code>: Visualize the eigenvalues/variances.</li>
<li><code>get_mfa_ind(res.mfa)</code>: Extract the results for individuals.</li>
<li><code>get_mfa_var(res.mfa)</code>: Extract the results for quantitative and qualitative variables, as well as, for groups of variables.</li>
<li><code>fviz_mfa_ind(res.mfa)</code>, <code>fviz_mfa_var(res.mfa)</code>: Visualize the results for individuals and variables, respectively.</li>
</ul>
<p>In the next sections, we’ll illustrate each of these functions.</p>
<div class="warning">
<p>
To help in the interpretation of MFA, we highly recommend to read the interpretation of principal component analysis (Chapter <span class="citation">(<span class="citeproc-not-found" data-reference-id="ref"><strong>???</strong></span>)</span>(principal-component-analysis)), simple (Chapter <span class="citation">(<span class="citeproc-not-found" data-reference-id="ref"><strong>???</strong></span>)</span>(correspondence-analysis)) and multiple correspondence analysis (Chapter <span class="citation">(<span class="citeproc-not-found" data-reference-id="ref"><strong>???</strong></span>)</span>(multiple-correspondence-analysis)). Many of the graphs presented here have been already described in previous chapter.
</p>
</div>
<div id="eigenvalues-variances" class="section level3">
<h3>Eigenvalues / Variances</h3>
<p>The proportion of variances retained by the different dimensions (axes) can be extracted using the function <code>get_eigenvalue()</code> [<em>factoextra</em> package] as follow:</p>
<pre class="r"><code>library("factoextra")
eig.val <- get_eigenvalue(res.mfa)
head(eig.val)</code></pre>
<pre><code>##       eigenvalue variance.percent cumulative.variance.percent
## Dim.1      3.462            49.38                        49.4
## Dim.2      1.367            19.49                        68.9
## Dim.3      0.615             8.78                        77.7
## Dim.4      0.372             5.31                        83.0
## Dim.5      0.270             3.86                        86.8
## Dim.6      0.202             2.89                        89.7</code></pre>
<p>The function <code>fviz_eig()</code> or <code>fviz_screeplot()</code> [<em>factoextra</em> package] can be used to draw the scree plot:</p>
<pre class="r"><code>fviz_screeplot(res.mfa)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/010-multiple-factor-analysis-eigenvalue-screeplot-1.png" width="384" /></p>
</div>
<div id="graph-of-variables" class="section level3">
<h3>Graph of variables</h3>
<div id="groups-of-variables" class="section level4">
<h4>Groups of variables</h4>
<p>The function <code>get_mfa_var()</code> [in <em>factoextra</em>] is used to extract the results for groups of variables. This function returns a list containing the coordinates, the cos2 and the contribution of groups, as well as, the</p>
<pre class="r"><code>group <- get_mfa_var(res.mfa, "group")
group</code></pre>
<pre><code>## Multiple Factor Analysis results for variable groups 
##  ===================================================
##   Name           Description                                          
## 1 "$coord"       "Coordinates"                                        
## 2 "$cos2"        "Cos2, quality of representation"                    
## 3 "$contrib"     "Contributions"                                      
## 4 "$correlation" "Correlation between groups and principal dimensions"</code></pre>
<p>The different components can be accessed as follow:</p>
<pre class="r"><code># Coordinates of groups
head(group$coord)

# Cos2: quality of representation on the factore map
head(group$cos2)

# Contributions to the  dimensions
head(group$contrib)</code></pre>
<p>To plot the groups of variables, type this:</p>
<pre class="r"><code>fviz_mfa_var(res.mfa, "group")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/010-multiple-factor-analysis-variable-groups-1.png" width="384" /></p>
<ul>
<li>red color = active groups of variables</li>
<li>green color = supplementary groups of variables</li>
</ul>
<p>The plot above illustrates the correlation between groups and dimensions. The coordinates of the four active groups on the first dimension are almost identical. This means that they contribute similarly to the first dimension. Concerning the second dimension, the two groups - odor and odor.after.shake - have the highest coordinates indicating a highest contribution to the second dimension.</p>
<p>To draw a bar plot of groups contribution to the dimensions, use the function <code>fviz_contrib()</code>:</p>
<pre class="r"><code># Contribution to the first dimension
fviz_contrib(res.mfa, "group", axes = 1)

# Contribution to the second dimension
fviz_contrib(res.mfa, "group", axes = 2)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/010-multiple-factor-analysis-groups-contribution-1.png" width="336" /><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/010-multiple-factor-analysis-groups-contribution-2.png" width="336" /></p>
</div>
<div id="quantitative-variables" class="section level4">
<h4>Quantitative variables</h4>
<p>The function <code>get_mfa_var()</code> [in <em>factoextra</em>] is used to extract the results for quantitative variables. This function returns a list containing the coordinates, the cos2 and the contribution of variables:</p>
<pre class="r"><code>quanti.var <- get_mfa_var(res.mfa, "quanti.var")
quanti.var </code></pre>
<pre><code>## Multiple Factor Analysis results for quantitative variables 
##  ===================================================
##   Name       Description                      
## 1 "$coord"   "Coordinates"                    
## 2 "$cos2"    "Cos2, quality of representation"
## 3 "$contrib" "Contributions"</code></pre>
<p>The different components can be accessed as follow:</p>
<pre class="r"><code># Coordinates
head(quanti.var$coord)

# Cos2: quality on the factore map
head(quanti.var$cos2)

# Contributions to the dimensions
head(quanti.var$contrib)</code></pre>
<p>In this section, we’ll describe how to visualize quantitative variables colored by groups. Next, we’ll highlight variables according to either i) their quality of representation on the factor map or ii) their contributions to the dimensions.</p>
<div class="warning">
<p>
To interpret the graphs presented here, read the chapter on PCA (Chapter <span class="citation">(<span class="citeproc-not-found" data-reference-id="ref"><strong>???</strong></span>)</span>(principal-component-analysis)) and MCA (Chapter <span class="citation">(<span class="citeproc-not-found" data-reference-id="ref"><strong>???</strong></span>)</span>(multiple-correspondence-analysis)).
</p>
</div>
<p><strong>Correlation between quantitative variables and dimensions</strong>. The R code below plots quantitative variables colored by groups. The argument palette is used to change group colors (see ?ggpubr::ggpar for more information about palette). Supplementary quantitative variables are in dashed arrow and violet color. We use repel = TRUE, to avoid text overlapping.</p>
<pre class="r"><code>fviz_mfa_var(res.mfa, "quanti.var", palette = "jco", 
             col.var.sup = "violet", repel = TRUE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/010-multiple-factor-analysis-graph-variables-1.png" width="624" /></p>
<p>To make the plot more readable, we can use geom = c(“point”, “text”) instead of geom = c(“arrow”, “text”). We’ll change also the legend position from “right” to “bottom”, using the argument legend = “bottom”:</p>
<pre class="r"><code>fviz_mfa_var(res.mfa, "quanti.var", palette = "jco", 
             col.var.sup = "violet", repel = TRUE,
             geom = c("point", "text"), legend = "bottom")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/010-multiple-factor-analysis-graph-variables-point-1.png" width="624" /></p>
<p>Briefly, the graph of variables (correlation circle) shows the relationship between variables, the quality of the representation of variables, as well as, the correlation between variables and the dimensions:</p>
<ul>
<li><p>Positive correlated variables are grouped together, whereas negative ones are positioned on opposite sides of the plot origin (opposed quadrants).</p></li>
<li><p>The distance between variable points and the origin measures the quality of the variable on the factor map. Variable points that are away from the origin are well represented on the factor map.</p></li>
<li><p>For a given dimension, the most correlated variables to the dimension are close to the dimension.</p></li>
</ul>
<p>For example, the first dimension represents the positive sentiments about wines: “intensity” and “harmony”. The most correlated variables to the second dimension are: i) Spice before shaking and Odor intensity before shaking for the odor group; ii) Spice, Plant and Odor intensity for the odor after shaking group and iii) Bitterness for the taste group. This dimension represents essentially the “spicyness” and the vegetal characteristic due to olfaction.</p>
<p>The contribution of quantitative variables (in %) to the definition of the dimensions can be visualized using the function <code>fviz_contrib()</code> [factoextra package]. Variables are colored by groups. The R code below shows the top 20 variable categories contributing to the dimensions:</p>
<pre class="r"><code># Contributions to dimension 1
fviz_contrib(res.mfa, choice = "quanti.var", axes = 1, top = 20,
             palette = "jco")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/010-multiple-factor-analysis-variable-contributions-bar-plot-1.png" width="672" /></p>
<pre class="r"><code># Contributions to dimension 2
fviz_contrib(res.mfa, choice = "quanti.var", axes = 2, top = 20,
             palette = "jco")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/010-multiple-factor-analysis-variable-contributions-bar-plot-2.png" width="672" /></p>
<p>The red dashed line on the graph above indicates the expected average value, If the contributions were uniform. The calculation of the expected contribution value, under null hypothesis, has been detailed in the principal component analysis chapter (Chapter @ref(principal-component-analysis)).</p>
<div class="success">
<p>
The variables with the larger value, contribute the most to the definition of the dimensions. Variables that contribute the most to Dim.1 and Dim.2 are the most important in explaining the variability in the data set.
</p>
</div>
<p>The most contributing quantitative variables can be highlighted on the scatter plot using the argument col.var = “contrib”. This produces a gradient colors, which can be customized using the argument <code>gradient.cols</code>.</p>
<pre class="r"><code>fviz_mfa_var(res.mfa, "quanti.var", col.var = "contrib", 
             gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"), 
             col.var.sup = "violet", repel = TRUE,
             geom = c("point", "text"))</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/010-multiple-factor-analysis-variable-contribution-scatter-plot-1.png" width="604.8" /></p>
<p>Similarly, you can highlight quantitative variables using their cos2 values representing the quality of representation on the factor map. If a variable is well represented by two dimensions, the sum of the cos2 is closed to one. For some of the row items, more than 2 dimensions might be required to perfectly represent the data.</p>
<pre class="r"><code># Color by cos2 values: quality on the factor map
fviz_mfa_var(res.mfa, col.var = "cos2",
             gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"), 
             col.var.sup = "violet", repel = TRUE)</code></pre>
<p>To create a bar plot of variables cos2, type this:</p>
<pre class="r"><code>fviz_cos2(res.mfa, choice = "quanti.var", axes = 1)</code></pre>
</div>
</div>
<div id="graph-of-individuals" class="section level3">
<h3>Graph of individuals</h3>
<p>To get the results for individuals, type this:</p>
<pre class="r"><code>ind <- get_mfa_ind(res.mfa)
ind</code></pre>
<pre><code>## Multiple Factor Analysis results for individuals 
##  ===================================================
##   Name                      Description                      
## 1 "$coord"                  "Coordinates"                    
## 2 "$cos2"                   "Cos2, quality of representation"
## 3 "$contrib"                "Contributions"                  
## 4 "$coord.partiel"          "Partial coordinates"            
## 5 "$within.inertia"         "Within inertia"                 
## 6 "$within.partial.inertia" "Within partial inertia"</code></pre>
<p>To plot individuals, use the function <code>fviz_mfa_ind()</code> [in <em>factoextra</em>]. By default, individuals are colored in blue. However, like variables, it’s also possible to color individuals by their cos2 values:</p>
<pre class="r"><code>fviz_mfa_ind(res.mfa, col.ind = "cos2", 
             gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"),
             repel = TRUE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/010-multiple-factor-analysis-mfa-individuals-1.png" width="576" /></p>
<div class="success">
<p>
In the plot above, the supplementary qualitative variable categories are shown in black. Env1, Env2, Env3 are the categories of the soil. Saumur, Bourgueuil and Chinon are the categories of the wine Label. If you don’t want to show them on the plot, use the argument <code>invisible = “quali.var”</code>.
</p>
</div>
<p>Individuals with similar profiles are close to each other on the factor map. The first axis, mainly opposes the wine <code>1DAM</code> and, the wines <code>1VAU</code> and <code>2ING</code>. As described in the previous section, the first dimension represents the harmony and the intensity of wines. Thus, the wine 1DAM (positive coordinates) was evaluated as the most “intense” and “harmonious” contrary to wines 1VAU and 2ING (negative coordinates) which are the least “intense” and “harmonious”. The second axis is essentially associated with the two wines T1 and T2 characterized by a strong value of the variables Spice.before.shaking and Odor.intensity.before.shaking.</p>
<p>Most of the supplementary qualitative variable categories are close to the origin of the map. This result indicates that the concerned categories are not related to the first axis (wine “intensity” &amp; “harmony”) or the second axis (wine T1 and T2).</p>
<p>The category Env4 has high coordinates on the second axis related to T1 and T2.</p>
<p>The category “Reference” is known to be related to an excellent wine-producing soil. As expected, our analysis demonstrates that the category “Reference” has high coordinates on the first axis, which is positively correlated with wines “intensity” and “harmony”.</p>
<p>Note that, it’s possible to color the individuals using any of the qualitative variables in the initial data table. To do this, the argument <code>habillage</code> is used in the <code>fviz_mfa_ind()</code> function. For example, if you want to color the wines according to the supplementary qualitative variable “Label”, type this:</p>
<pre class="r"><code>fviz_mfa_ind(res.mfa, 
             habillage = "Label", # color by groups 
             palette = c("#00AFBB", "#E7B800", "#FC4E07"),
             addEllipses = TRUE, ellipse.type = "confidence", 
             repel = TRUE # Avoid text overlapping
             ) </code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/010-multiple-factor-analysis-change-color-by-groups-1.png" width="672" /></p>
<p>If you want to color individuals using multiple categorical variables at the same time, use the function fviz_ellipses() [in <em>factoextra</em>] as follow:</p>
<pre class="r"><code>fviz_ellipses(res.mfa, c("Label", "Soil"), repel = TRUE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/010-multiple-factor-analysis-plot-ellipse-1.png" width="672" /></p>
<p>Alternatively, you can specify categorical variable indices:</p>
<pre class="r"><code>fviz_ellipses(res.mca, 1:2, geom = "point")</code></pre>
</div>
<div id="graph-of-partial-individuals" class="section level3">
<h3>Graph of partial individuals</h3>
<p>The results for individuals obtained from the analysis performed with a single group are named <em>partial individuals</em>. In other words, an individual considered from the point of view of a single group is called partial individual.</p>
<p>In the default <code>fviz_mfa_ind()</code> plot, for a given individual, the point corresponds to the <em>mean individual</em> or the center of gravity of the partial points of the individual. That is, the individual viewed by all groups of variables.</p>
<p>For a given individual, there are as many partial points as groups of variables.</p>
<p>The graph of partial individuals represents each wine viewed by each group and its barycenter. To plot the partial points of all individuals, type this:</p>
<pre class="r"><code>fviz_mfa_ind(res.mfa, partial = "all") </code></pre>
<p>If you want to visualize partial points for wines of interest, let say c(“1DAM”, “1VAU”, “2ING”), use this:</p>
<pre class="r"><code>fviz_mfa_ind(res.mfa, partial = c("1DAM", "1VAU", "2ING")) </code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/010-multiple-factor-analysis-partial-individuals-1.png" width="672" /></p>
<p>Red color represents the wines seen by only the <code>odor</code> variables; violet color represents the wines seen by only the <code>visual</code> variables, and so on.</p>
<p>The wine <code>1DAM</code> has been described in the previous section as particularly “intense” and “harmonious”, particularly by the <code>odor</code> group: It has a high coordinate on the first axis from the point of view of the <code>odor</code> variables group compared to the point of view of the other groups.</p>
<p>From the odor group’s point of view, 2ING was more “intense” and “harmonious” than 1VAU but from the taste group’s point of view, 1VAU was more “intense” and “harmonious” than 2ING.</p>
</div>
<div id="graph-of-partial-axes" class="section level3">
<h3>Graph of partial axes</h3>
<p>The graph of partial axes shows the relationship between the principal axes of the MFA and the ones obtained from analyzing each group using either a PCA (for groups of continuous variables) or a MCA (for qualitative variables).</p>
<pre class="r"><code>fviz_mfa_axes(res.mfa)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/010-multiple-factor-analysis-partial-axes-1.png" width="624" /></p>
<div class="success">
<p>
It can be seen that, he first dimension of each group is highly correlated to the MFA’s first one. The second dimension of the MFA is essentially correlated to the second dimension of the olfactory groups.
</p>
</div>
</div>
</div>
<div id="summary" class="section level2">
<h2>Summary</h2>
<p>The multiple factor analysis (MFA) makes it possible to analyse individuals characterized by multiple sets of variables. In this article, we described how to perform and interpret MFA using FactoMineR and factoextra R packages.</p>
</div>
<div id="further-reading" class="section level2">
<h2>Further reading</h2>
<p>For the mathematical background behind MFA, refer to the following video courses, articles and books:</p>
<ul>
<li>Multiple Factor Analysis Course Using FactoMineR (Video courses). <a href="https://goo.gl/WcmHHt" class="uri">https://goo.gl/WcmHHt</a>.</li>
<li>Exploratory Multivariate Analysis by Example Using R (book) <span class="citation">(F. Husson, Le, and Pagès 2017)</span>.</li>
<li>Principal component analysis (article) <span class="citation">(Abdi and Williams 2010)</span>. <a href="https://goo.gl/1Vtwq1" class="uri">https://goo.gl/1Vtwq1</a>.</li>
<li>Simultaneous analysis of distinct Omics data sets with integration of biological knowledge: Multiple Factor Analysis approach <span class="citation">(Tayrac et al. 2009)</span>.</li>
</ul>
</div>
<div id="references" class="section level2 unnumbered">
<h2>References</h2>
<div id="refs" class="references">
<div id="ref-abdi2010">
<p>Abdi, Hervé, and Lynne J. Williams. 2010. “Principal Component Analysis.” <em>John Wiley and Sons, Inc. WIREs Comp Stat</em> 2: 433–59. <a href="http://staff.ustc.edu.cn/~zwp/teach/MVA/abdi-awPCA2010.pdf" class="uri">http://staff.ustc.edu.cn/~zwp/teach/MVA/abdi-awPCA2010.pdf</a>.</p>
</div>
<div id="ref-husson2017">
<p>Husson, Francois, Sebastien Le, and Jérôme Pagès. 2017. <em>Exploratory Multivariate Analysis by Example Using R</em>. 2nd ed. Boca Raton, Florida: Chapman; Hall/CRC. <a href="http://factominer.free.fr/bookV2/index.html" class="uri">http://factominer.free.fr/bookV2/index.html</a>.</p>
</div>
<div id="ref-pages2002">
<p>Pagès, J. 2002. “Analyse Factorielle Multiple Appliquée Aux Variables Qualitatives et Aux Données Mixtes.” <em>Revue Statistique Appliquee</em> 4: 5–37.</p>
</div>
<div id="ref-detayrac2009">
<p>Tayrac, Marie de, Sébastien Lê, Marc Aubry, Jean Mosser, and François Husson. 2009. “Simultaneous Analysis of Distinct Omics Data Sets with Integration of Biological Knowledge: Multiple Factor Analysis Approach.” <em>BMC Genomics</em> 10 (1): 32. <a href="https://doi.org/10.1186/1471-2164-10-32" class="uri">https://doi.org/10.1186/1471-2164-10-32</a>.</p>
</div>
</div>
</div>


</div><!--end rdoc-->


<!-- END HTML -->]]></description>
			<pubDate>Mon, 25 Sep 2017 02:27:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[FAMD - Factor Analysis of Mixed Data in R: Essentials]]></title>
			<link>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/115-famd-factor-analysis-of-mixed-data-in-r-essentials/</link>
			<guid>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/115-famd-factor-analysis-of-mixed-data-in-r-essentials/</guid>
			<description><![CDATA[<!-- START HTML -->

  <div id="rdoc">





<p><strong>Factor analysis of mixed data</strong> (<strong>FAMD</strong>) is a principal component method dedicated to analyze a data set containing both quantitative and qualitative variables <span class="citation">(Pagès 2004)</span>. It makes it possible to analyze the similarity between individuals by taking into account a mixed types of variables. Additionally, one can explore the association between all variables, both quantitative and qualitative variables.</p>
<p>Roughly speaking, the FAMD algorithm can be seen as a mixed between principal component analysis (PCA) (Chapter @ref(principal-component-analysis)) and multiple correspondence analysis (MCA) (Chapter @ref(multiple-correspondence-analysis)). In other words, it acts as PCA quantitative variables and as MCA for qualitative variables.</p>
<p>Quantitative and qualitative variables are normalized during the analysis in order to balance the influence of each set of variables.</p>
<p>In the current chapter, we demonstrate how to compute and visualize factor analysis of mixed data using <em>FactoMineR</em> (for the analysis) and <em>factoextra</em> (for data visualization) <em>R</em> packages.</p>

<br/>
<p>Contents:</p>
<div id="TOC">
<ul>
<li><a href="#introduction">Introduction</a></li>
<li><a href="#computation">Computation</a><ul>
<li><a href="#r-packages">R packages</a></li>
<li><a href="#data-format">Data format</a></li>
<li><a href="#r-code">R code</a></li>
</ul></li>
<li><a href="#visualization-and-interpretation">Visualization and interpretation</a><ul>
<li><a href="#eigenvalues-variances">Eigenvalues / Variances</a></li>
<li><a href="#graph-of-variables">Graph of variables</a></li>
<li><a href="#graph-of-individuals">Graph of individuals</a></li>
</ul></li>
<li><a href="#summary">Summary</a></li>
<li><a href="#further-reading">Further reading</a></li>
<li><a href="#references">References</a></li>
</ul>
</div>

<br/>
<div class = "small-block content-privileged-friends pca-book">
  <p>The Book:</p>
        <a href = "https://www.sthda.com/english/web/5-bookadvisor/50-practical-guide-to-principal-component-methods-in-r/">
        <img src = "https://www.sthda.com/english/sthda-upload/images/principal-component-methods/principal-component-methods-cover-200px.png" /><br/>
      Practical Guide to Principal Component Methods in R
      </a>
</div>
<div class="spacer"></div>

<div id="computation" class="section level2">
<h2>Computation</h2>
<div id="r-packages" class="section level3">
<h3>R packages</h3>
<p>Install required packages as follow:</p>
<pre class="r"><code>install.packages(c("FactoMineR", "factoextra"))</code></pre>
<p>Load the packages:</p>
<pre class="r"><code>library("FactoMineR")
library("factoextra")</code></pre>
</div>
<div id="data-format" class="section level3">
<h3>Data format</h3>
<p>We’ll use a subset of the <code>wine</code> data set available in <em>FactoMineR</em> package:</p>
<pre class="r"><code>library("FactoMineR")
data(wine)
df <- wine[,c(1,2, 16, 22, 29, 28, 30,31)]
head(df[, 1:7], 4)</code></pre>
<pre><code>##           Label Soil Plante Acidity Harmony Intensity Overall.quality
## 2EL      Saumur Env1   2.00    2.11    3.14      2.86            3.39
## 1CHA     Saumur Env1   2.00    2.11    2.96      2.89            3.21
## 1FON Bourgueuil Env1   1.75    2.18    3.14      3.07            3.54
## 1VAU     Chinon Env2   2.30    3.18    2.04      2.46            2.46</code></pre>
<p>To see the structure of the data, type this:</p>
<pre class="r"><code>str(df)</code></pre>
<p>The data contains 21 rows (wines, <code>individuals</code>) and 8 columns (<code>variables</code>):</p>
<ul>
<li>The first two columns are factors (<code>categorical variables</code>): <code>label</code> (Saumur, Bourgueil or Chinon) and <code>soil</code> (Reference, Env1, Env2 or Env4).</li>
<li>The remaining columns are numeric (<code>continuous variables</code>).</li>
</ul>
<div class="success">
<p>
The goal of this study is to analyze the characteristics of the wines.
</p>
</div>
</div>
<div id="r-code" class="section level3">
<h3>R code</h3>
<p>The function <em>FAMD</em>() [<em>FactoMiner</em> package] can be used to compute FAMD. A simplified format is :</p>
<pre class="r"><code>FAMD (base, ncp = 5, sup.var = NULL, ind.sup = NULL, graph = TRUE)</code></pre>
<ul>
<li><code>base</code> : a data frame with n rows (individuals) and p columns (variables).</li>
<li><code>ncp</code>: the number of dimensions kept in the results (by default 5)</li>
<li><code>sup.var</code>: a vector indicating the indexes of the supplementary variables.</li>
<li><code>ind.sup</code>: a vector indicating the indexes of the supplementary individuals.</li>
<li><code>graph</code> : a logical value. If TRUE a graph is displayed.</li>
</ul>
<p>To compute FAMD, type this:</p>
<pre class="r"><code>library(FactoMineR)
res.famd <- FAMD(df, graph = FALSE)</code></pre>
<p>The output of the <em>FAMD</em>() function is a list including :</p>
<pre class="r"><code>print(res.famd)</code></pre>
<pre><code>## *The results are available in the following objects:
## 
##   name          description                             
## 1 "$eig"        "eigenvalues and inertia"               
## 2 "$var"        "Results for the variables"             
## 3 "$ind"        "results for the individuals"           
## 4 "$quali.var"  "Results for the qualitative variables" 
## 5 "$quanti.var" "Results for the quantitative variables"</code></pre>
</div>
</div>
<div id="visualization-and-interpretation" class="section level2">
<h2>Visualization and interpretation</h2>
<p>We’ll use the following <em>factoextra</em> functions:</p>
<ul>
<li><code>get_eigenvalue(res.famd)</code>: Extract the eigenvalues/variances retained by each dimension (axis).</li>
<li><code>fviz_eig(res.famd)</code>: Visualize the eigenvalues/variances.</li>
<li><code>get_famd_ind(res.famd)</code>: Extract the results for individuals.</li>
<li><code>get_famd_var(res.famd)</code>: Extract the results for quantitative and qualitative variables.</li>
<li><code>fviz_famd_ind(res.famd)</code>, <code>fviz_famd_var(res.famd)</code>: Visualize the results for individuals and variables, respectively.</li>
</ul>
<p>In the next sections, we’ll illustrate each of these functions.</p>
<div class="warning">
<p>
To help in the interpretation of FAMD, we highly recommend to read the interpretation of principal component analysis (Chapter <span class="citation">(<span class="citeproc-not-found" data-reference-id="ref"><strong>???</strong></span>)</span>(principal-component-analysis)) and multiple correspondence analysis (Chapter <span class="citation">(<span class="citeproc-not-found" data-reference-id="ref"><strong>???</strong></span>)</span>(multiple-correspondence-analysis)). Many of the graphs presented here have been already described in our previous chapters.
</p>
</div>
<div id="eigenvalues-variances" class="section level3">
<h3>Eigenvalues / Variances</h3>
<p>The proportion of variances retained by the different dimensions (axes) can be extracted using the function <code>get_eigenvalue()</code> [<em>factoextra</em> package] as follow:</p>
<pre class="r"><code>library("factoextra")
eig.val <- get_eigenvalue(res.famd)
head(eig.val)</code></pre>
<pre><code>##       eigenvalue variance.percent cumulative.variance.percent
## Dim.1      4.832            43.92                        43.9
## Dim.2      1.857            16.88                        60.8
## Dim.3      1.582            14.39                        75.2
## Dim.4      1.149            10.45                        85.6
## Dim.5      0.652             5.93                        91.6</code></pre>
<p>The function <code>fviz_eig()</code> or <code>fviz_screeplot()</code> [<em>factoextra</em> package] can be used to draw the scree plot (the percentages of inertia explained by each FAMD dimensions):</p>
<pre class="r"><code>fviz_screeplot(res.famd)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/009-factor-analysis-of-mixed-data-eigenvalue-screeplot-1.png" width="288" /></p>
</div>
<div id="graph-of-variables" class="section level3">
<h3>Graph of variables</h3>
<div id="all-variables" class="section level4">
<h4>All variables</h4>
<p>The function <code>get_mfa_var()</code> [in <em>factoextra</em>] is used to extract the results for variables. By default, this function returns a list containing the coordinates, the cos2 and the contribution of all variables:</p>
<pre class="r"><code>var <- get_famd_var(res.famd)
var</code></pre>
<pre><code>## FAMD results for variables 
##  ===================================================
##   Name       Description                      
## 1 "$coord"   "Coordinates"                    
## 2 "$cos2"    "Cos2, quality of representation"
## 3 "$contrib" "Contributions"</code></pre>
<p>The different components can be accessed as follow:</p>
<pre class="r"><code># Coordinates of variables
head(var$coord)

# Cos2: quality of representation on the factore map
head(var$cos2)

# Contributions to the  dimensions
head(var$contrib)</code></pre>
<p>The following figure shows the correlation between variables - both quantitative and qualitative variables - and the principal dimensions, as well as, the contribution of variables to the dimensions 1 and 2. The following functions [in the <em>factoextra</em> package] are used:</p>
<ul>
<li><code>fviz_famd_var()</code> to plot both quantitative and qualitative variables</li>
<li><code>fviz_contrib()</code> to visualize the contribution of variables to the principal dimensions</li>
</ul>
<pre class="r"><code># Plot of variables
fviz_famd_var(res.famd, repel = TRUE)

# Contribution to the first dimension
fviz_contrib(res.famd, "var", axes = 1)

# Contribution to the second dimension
fviz_contrib(res.famd, "var", axes = 2)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/009-factor-analysis-of-mixed-data-variables-1.png" width="316.8" /><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/009-factor-analysis-of-mixed-data-variables-2.png" width="316.8" /><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/009-factor-analysis-of-mixed-data-variables-3.png" width="316.8" /></p>
<p>The red dashed line on the graph above indicates the expected average value, If the contributions were uniform. Read more in chapter (Chapter @ref(principal-component-analysis)).</p>
<div class="success">
<p>
From the plots above, it can be seen that:
</p>
<ul>
<li>
<p>
variables that contribute the most to the first dimension are: Overall.quality and Harmony.
</p>
</li>
<li>
<p>
variables that contribute the most to the second dimension are: Soil and Acidity.
</p>
</li>
</ul>
</div>
</div>
<div id="quantitative-variables" class="section level4">
<h4>Quantitative variables</h4>
<p>To extract the results for quantitative variables, type this:</p>
<pre class="r"><code>quanti.var <- get_famd_var(res.famd, "quanti.var")
quanti.var </code></pre>
<pre><code>## FAMD results for quantitative variables 
##  ===================================================
##   Name       Description                      
## 1 "$coord"   "Coordinates"                    
## 2 "$cos2"    "Cos2, quality of representation"
## 3 "$contrib" "Contributions"</code></pre>
<p>In this section, we’ll describe how to visualize quantitative variables. Additionally, we’ll show how to highlight variables according to either i) their quality of representation on the factor map or ii) their contributions to the dimensions.</p>
<p>The R code below plots quantitative variables. We use repel = TRUE, to avoid text overlapping.</p>
<pre class="r"><code>fviz_famd_var(res.famd, "quanti.var", repel = TRUE,
              col.var = "black")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/009-factor-analysis-of-mixed-data-graph-variables-1.png" width="480" /></p>
<p>Briefly, the graph of variables (correlation circle) shows the relationship between variables, the quality of the representation of variables, as well as, the correlation between variables and the dimensions. Read more at PCA (Chapter @ref(principal-component-analysis)), MCA (Chapter @ref(multiple-correspondence-analysis)) and MFA (Chapter @ref(multiple-factor-analysis)).</p>
<p>The most contributing quantitative variables can be highlighted on the scatter plot using the argument <code>col.var = "contrib"</code>. This produces a gradient colors, which can be customized using the argument <code>gradient.cols</code>.</p>
<pre class="r"><code>fviz_famd_var(res.famd, "quanti.var", col.var = "contrib", 
             gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"),
             repel = TRUE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/009-factor-analysis-of-mixed-data-variable-contribution-scatter-plot-1.png" width="528" /></p>
<p>Similarly, you can highlight quantitative variables using their cos2 values representing the quality of representation on the factor map. If a variable is well represented by two dimensions, the sum of the cos2 is closed to one. For some of the items, more than 2 dimensions might be required to perfectly represent the data.</p>
<pre class="r"><code># Color by cos2 values: quality on the factor map
fviz_famd_var(res.famd, "quanti.var", col.var = "cos2",
             gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"), 
             repel = TRUE)</code></pre>
</div>
<div id="graph-of-qualitative-variables" class="section level4">
<h4>Graph of qualitative variables</h4>
<p>Like quantitative variables, the results for qualitative variables can be extracted as follow:</p>
<pre class="r"><code>quali.var <- get_famd_var(res.famd, "quali.var")
quali.var </code></pre>
<pre><code>## FAMD results for qualitative variable categories 
##  ===================================================
##   Name       Description                      
## 1 "$coord"   "Coordinates"                    
## 2 "$cos2"    "Cos2, quality of representation"
## 3 "$contrib" "Contributions"</code></pre>
<p>To visualize qualitative variables, type this:</p>
<pre class="r"><code>fviz_famd_var(res.famd, "quali.var", col.var = "contrib", 
             gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07")
             )</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/009-factor-analysis-of-mixed-data-qualitative-variables-1.png" width="528" /></p>
<p>The plot above shows the categories of the categorical variables.</p>
</div>
</div>
<div id="graph-of-individuals" class="section level3">
<h3>Graph of individuals</h3>
<p>To get the results for individuals, type this:</p>
<pre class="r"><code>ind <- get_famd_ind(res.famd)
ind</code></pre>
<pre><code>## FAMD results for individuals 
##  ===================================================
##   Name       Description                      
## 1 "$coord"   "Coordinates"                    
## 2 "$cos2"    "Cos2, quality of representation"
## 3 "$contrib" "Contributions"</code></pre>
<p>To plot individuals, use the function <code>fviz_mfa_ind()</code> [in <em>factoextra</em>]. By default, individuals are colored in blue. However, like variables, it’s also possible to color individuals by their cos2 and contribution values:</p>
<pre class="r"><code>fviz_famd_ind(res.famd, col.ind = "cos2", 
             gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"),
             repel = TRUE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/009-factor-analysis-of-mixed-data-mfa-individuals-1.png" width="576" /></p>
<p><span class="success">In the plot above, the qualitative variable categories are shown in black. Env1, Env2, Env3 are the categories of the soil. Saumur, Bourgueuil and Chinon are the categories of the wine Label. If you don’t want to show them on the plot, use the argument <code>invisible = "quali.var"</code>.</span></p>
<p>Individuals with similar profiles are close to each other on the factor map. For the interpretation, read more at Chapter @ref(multiple-correspondence-analysis) (MCA) and Chapter @ref(multiple-factor-analysis) (MFA).</p>
<p>Note that, it’s possible to color the individuals using any of the qualitative variables in the initial data table. To do this, the argument <code>habillage</code> is used in the <code>fviz_famd_ind()</code> function. For example, if you want to color the wines according to the supplementary qualitative variable “Label”, type this:</p>
<pre class="r"><code>fviz_mfa_ind(res.famd, 
             habillage = "Label", # color by groups 
             palette = c("#00AFBB", "#E7B800", "#FC4E07"),
             addEllipses = TRUE, ellipse.type = "confidence", 
             repel = TRUE # Avoid text overlapping
             ) </code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/009-factor-analysis-of-mixed-data-change-color-by-groups-1.png" width="672" /></p>
<p>If you want to color individuals using multiple categorical variables at the same time, use the function fviz_ellipses() [in <em>factoextra</em>] as follow:</p>
<pre class="r"><code>fviz_ellipses(res.famd, c("Label", "Soil"), repel = TRUE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/009-factor-analysis-of-mixed-data-plot-ellipse-1.png" width="672" /></p>
<p>Alternatively, you can specify categorical variable indices:</p>
<pre class="r"><code>fviz_ellipses(res.famd, 1:2, geom = "point")</code></pre>
</div>
</div>
<div id="summary" class="section level2">
<h2>Summary</h2>
<p>The factor analysis of mixed data (FAMD) makes it possible to analyze a data set, in which individuals are described by both qualitative and quantitative variables. In this article, we described how to perform and interpret FAMD using FactoMineR and factoextra R packages.</p>
</div>
<div id="further-reading" class="section level2">
<h2>Further reading</h2>
<p>Factor Analysis of Mixed Data Using FactoMineR (video course). <a href="https://goo.gl/64gY3R" class="uri">https://goo.gl/64gY3R</a></p>
</div>
<div id="references" class="section level2 unnumbered">
<h2>References</h2>
<div id="refs" class="references">
<div id="ref-pages2004">
<p>Pagès, J. 2004. “Analyse Factorielle de Donnees Mixtes.” <em>Revue Statistique Appliquee</em> 4: 93–111.</p>
</div>
</div>
</div>


</div><!--end rdoc-->

<!-- END HTML -->]]></description>
			<pubDate>Sun, 24 Sep 2017 07:50:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[MCA - Multiple Correspondence Analysis in R: Essentials]]></title>
			<link>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/114-mca-multiple-correspondence-analysis-in-r-essentials/</link>
			<guid>https://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/114-mca-multiple-correspondence-analysis-in-r-essentials/</guid>
			<description><![CDATA[<!-- START HTML -->

  <div id="rdoc">
<p>The <strong>Multiple correspondence analysis</strong> (<strong>MCA</strong>) is an extension of the simple correspondence analysis (chapter @ref(correspondence-analysis)) for summarizing and visualizing a data table containing more than two <em>categorical variables</em>. It can also be seen as a generalization of principal component analysis when the variables to be analyzed are categorical instead of quantitative <span class="citation">(Abdi and Williams 2010)</span>.</p>
<p><strong>MCA</strong> is generally used to analyse a data set from survey. The goal is to identify:</p>
<ul>
<li>A group of individuals with similar profile in their answers to the questions</li>
<li>The associations between variable categories</li>
</ul>
<p>Previously, we described how to compute and interpret the simple correspondence analysis (chapter @ref(correspondence-analysis)). In the current chapter, we demonstrate how to compute and visualize multiple correspondence analysis in <em>R</em> software using <em>FactoMineR</em> (for the analysis) and <em>factoextra</em> (for data visualization). Additionally, we’ll show how to reveal the most important variables that contribute the most in explaining the variations in the data set. We continue by explaining how to predict the results for supplementary individuals and variables. Finally, we’ll demonstrate how to filter MCA results in order to keep only the most contributing variables.</p>
<p>Contents:</p>
<div id="TOC">
<ul>
<li><a href="#computation">Computation</a><ul>
<li><a href="#r-packages">R packages</a></li>
<li><a href="#mca-data-format">Data format</a></li>
<li><a href="#data-summary">Data summary</a></li>
<li><a href="#r-code">R code</a></li>
</ul></li>
<li><a href="#visualization-and-interpretation">Visualization and interpretation</a><ul>
<li><a href="#eigenvalues-variances">Eigenvalues / Variances</a></li>
<li><a href="#biplot">Biplot</a></li>
<li><a href="#graph-of-variables">Graph of variables</a></li>
<li><a href="#graph-of-individuals">Graph of individuals</a></li>
<li><a href="#color-individuals-by-groups">Color individuals by groups</a></li>
<li><a href="#dimension-description">Dimension description</a></li>
</ul></li>
<li><a href="#supplementary-elements">Supplementary elements</a><ul>
<li><a href="#definition-and-types">Definition and types</a></li>
<li><a href="#specification-in-mca">Specification in MCA</a></li>
<li><a href="#results-2">Results</a></li>
<li><a href="#plots">Plots</a></li>
</ul></li>
<li><a href="#filtering-results">Filtering results</a></li>
<li><a href="#exporting-results">Exporting results</a><ul>
<li><a href="#export-plots-to-pdfpng-files">Export plots to PDF/PNG files</a></li>
<li><a href="#export-results-to-txtcsv-files">Export results to txt/csv files</a></li>
</ul></li>
<li><a href="#summary">Summary</a></li>
<li><a href="#further-reading">Further reading</a></li>
<li><a href="#references">References</a></li>
</ul></li>
</ul>
</div>
<br/>
<p>The Book:</p>
<div class = "small-block content-privileged-friends pca-book">
    <center>
        <a href = "https://www.sthda.com/english/web/5-bookadvisor/50-practical-guide-to-principal-component-methods-in-r/">
          <img src = "https://www.sthda.com/english/sthda-upload/images/principal-component-methods/principal-component-methods-cover-200px.png" /><br/>
      Practical Guide to Principal Component Methods in R
      </a>
      </center>
</div>
<div class="spacer"></div>
<div id="computation" class="section level2">
<h2>Computation</h2>
<div id="r-packages" class="section level3">
<h3>R packages</h3>
<p>Several functions from different packages are available in the <em>R software</em> for computing multiple correspondence analysis. These functions/packages include:</p>
<ul>
<li><em>MCA</em>() function [<em>FactoMineR</em> package]</li>
<li><em>dudi.mca()</em> function [<em>ade4</em> package]</li>
<li>and <em>epMCA</em>() [<em>ExPosition</em> package]</li>
</ul>
<p>No matter what function you decide to use, you can easily extract and visualize the MCA results using R functions provided in the <em>factoextra</em> R package.</p>
<p>Here, we’ll use FactoMineR (for the analysis) and factoextra (for ggplot2-based elegant visualization). To install the two packages, type this:</p>
<pre class="r"><code>install.packages(c("FactoMineR", "factoextra"))</code></pre>
<p>Load the packages:</p>
<pre class="r"><code>library("FactoMineR")
library("factoextra")</code></pre>
</div>
<div id="mca-data-format" class="section level3">
<h3>Data format</h3>
<p>We’ll use the demo data sets <code>poison</code> available in <em>FactoMineR</em> package:</p>
<pre class="r"><code>data(poison)
head(poison[, 1:7], 3)</code></pre>
<pre><code>##   Age Time   Sick Sex   Nausea Vomiting Abdominals
## 1   9   22 Sick_y   F Nausea_y  Vomit_n     Abdo_y
## 2   5    0 Sick_n   F Nausea_n  Vomit_n     Abdo_n
## 3   6   16 Sick_y   F Nausea_n  Vomit_y     Abdo_y</code></pre>
<p>This data is a result from a survey carried out on children of primary school who suffered from food poisoning. They were asked about their symptoms and about what they ate.</p>
<p>The data contains 55 rows (individuals) and 15 columns (variables). We’ll use only some of these individuals (children) and variables to perform the multiple correspondence analysis. The coordinates of the remaining individuals and variables on the factor map will be predicted from the previous MCA results.</p>
<p>In <strong>MCA</strong> terminology, our data contains :</p>
<div class="block">
<ul>
<li>
<em>Active individuals</em> (rows 1:55): Individuals that are used in the multiple correspondence analysis.
</li>
<li>
<em>Active variables</em> (columns 5:15) : Variables that are used in the MCA.
</li>
<li>
<em>Supplementary variables</em>: They don’t participate to the MCA. The coordinates of these variables will be predicted.
<ul>
<li>
<em>Supplementary quantitative variables</em> (quanti.sup): Columns 1 and 2 corresponding to the columns <em>age</em> and <em>time</em>, respectively.
</li>
<li>
<em>Supplementary qualitative variables</em> (quali.sup: Columns 3 and 4 corresponding to the columns <em>Sick</em> and <em>Sex</em>, respectively. This factor variables will be used to color individuals by groups.
</li>
</ul>
</li>
</ul>
</div>
<p>Subset only active individuals and variables for multiple correspondence analysis:</p>
<pre class="r"><code>poison.active <- poison[1:55, 5:15]
head(poison.active[, 1:6], 3)</code></pre>
<pre><code>##     Nausea Vomiting Abdominals   Fever   Diarrhae   Potato
## 1 Nausea_y  Vomit_n     Abdo_y Fever_y Diarrhea_y Potato_y
## 2 Nausea_n  Vomit_n     Abdo_n Fever_n Diarrhea_n Potato_y
## 3 Nausea_n  Vomit_y     Abdo_y Fever_y Diarrhea_y Potato_y</code></pre>
</div>
<div id="data-summary" class="section level3">
<h3>Data summary</h3>
<p>The R base function <code>summary()</code> can be used to compute the frequency of variable categories. As the data table contains a large number of variables, we’ll display only the results for the first 4 variables.</p>
<p>Statistical summaries:</p>
<pre class="r"><code># Summary of the 4 first variables
summary(poison.active)[, 1:4]</code></pre>
<pre><code>##       Nausea      Vomiting   Abdominals     Fever   
##  Nausea_n:43   Vomit_n:33   Abdo_n:18   Fever_n:20  
##  Nausea_y:12   Vomit_y:22   Abdo_y:37   Fever_y:35</code></pre>
<p>The summary() functions return the size of each variable category.</p>
<p>It’s also possible to plot the frequency of variable categories. The R code below, plots the first 4 columns:</p>
<pre class="r"><code>for (i in 1:4) {
  plot(poison.active[,i], main=colnames(poison.active)[i],
       ylab = "Count", col="steelblue", las = 2)
  }</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-frequency-variables-data-mining-1.png" width="172.8" /><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-frequency-variables-data-mining-2.png" width="172.8" /><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-frequency-variables-data-mining-3.png" width="172.8" /><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-frequency-variables-data-mining-4.png" width="172.8" /></p>
<div class="warning">
<p>
The graphs above can be used to identify variable categories with a very low frequency. These types of variables can distort the analysis and should be removed.
</p>
</div>
</div>
<div id="r-code" class="section level3">
<h3>R code</h3>
<p>The function <em>MCA</em>()[<em>FactoMiner</em> package] can be used. A simplified format is :</p>
<pre class="r"><code>MCA(X, ncp = 5, graph = TRUE)</code></pre>
<ul>
<li><code>X</code>: a data frame with n rows (individuals) and p columns (categorical variables)</li>
<li><code>ncp</code>: number of dimensions kept in the final results.</li>
<li><code>graph</code>: a logical value. If TRUE a graph is displayed.</li>
</ul>
<p>In the R code below, the MCA is performed only on the active individuals/variables :</p>
<pre class="r"><code>res.mca <- MCA(poison.active, graph = FALSE)</code></pre>
<p>The output of the <em>MCA</em>() function is a list including :</p>
<pre class="r"><code>print(res.mca)</code></pre>
<pre><code>## **Results of the Multiple Correspondence Analysis (MCA)**
## The analysis was performed on 55 individuals, described by 11 variables
## *The results are available in the following objects:
## 
##    name              description                       
## 1  "$eig"            "eigenvalues"                     
## 2  "$var"            "results for the variables"       
## 3  "$var$coord"      "coord. of the categories"        
## 4  "$var$cos2"       "cos2 for the categories"         
## 5  "$var$contrib"    "contributions of the categories" 
## 6  "$var$v.test"     "v-test for the categories"       
## 7  "$ind"            "results for the individuals"     
## 8  "$ind$coord"      "coord. for the individuals"      
## 9  "$ind$cos2"       "cos2 for the individuals"        
## 10 "$ind$contrib"    "contributions of the individuals"
## 11 "$call"           "intermediate results"            
## 12 "$call$marge.col" "weights of columns"              
## 13 "$call$marge.li"  "weights of rows"</code></pre>
<div class="success">
<p>
The object that is created using the function <em>MCA</em>() contains many information found in many different lists and matrices. These values are described in the next section.
</p>
</div>
</div>
</div>
<div id="visualization-and-interpretation" class="section level2">
<h2>Visualization and interpretation</h2>
<p>We’ll use the <em>factoextra</em> R package to help in the interpretation and the visualization of the multiple correspondence analysis. No matter what function you decide to use [FactoMiner::MCA(), ade4::dudi.mca()], you can easily extract and visualize the results of multiple correspondence analysis using R functions provided in the <em>factoextra</em> R package.</p>
<p>These <em>factoextra</em> functions include:</p>
<ul>
<li><code>get_eigenvalue(res.mca)</code>: Extract the eigenvalues/variances retained by each dimension (axis)</li>
<li><code>fviz_eig(res.mca)</code>: Visualize the eigenvalues/variances</li>
<li><code>get_mca_ind(res.mca)</code>, <code>get_mca_var(res.mca)</code>: Extract the results for individuals and variables, respectively.</li>
<li><code>fviz_mca_ind(res.mca)</code>, <code>fviz_mca_var(res.mca)</code>: Visualize the results for individuals and variables, respectively.</li>
<li><code>fviz_mca_biplot(res.mca)</code>: Make a biplot of rows and columns.</li>
</ul>
<p>In the next sections, we’ll illustrate each of these functions.</p>
<div class="warning">
Note that, the MCA results is interpreted as the results from a simple correspondence analysis (CA). Therefore, it is strongly recommended to read the interpretation of simple CA which has been comprehensively described in the Chapter @ref(correspondence-analysis).
</div>
<div id="eigenvalues-variances" class="section level3">
<h3>Eigenvalues / Variances</h3>
<p>The proportion of variances retained by the different dimensions (axes) can be extracted using the function <code>get_eigenvalue()</code> [<em>factoextra</em> package] as follow:</p>
<pre class="r"><code>library("factoextra")
eig.val <- get_eigenvalue(res.mca)
 # head(eig.val)</code></pre>
<p>To visualize the percentages of inertia explained by each MCA dimensions, use the function <code>fviz_eig()</code> or <code>fviz_screeplot()</code> [<em>factoextra</em> package]:</p>
<pre class="r"><code>fviz_screeplot(res.mca, addlabels = TRUE, ylim = c(0, 45))</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-eigenvalue-screeplot-1.png" width="480" /></p>
</div>
<div id="biplot" class="section level3">
<h3>Biplot</h3>
<p>The function <code>fviz_mca_biplot()</code> [<em>factoextra</em> package] is used to draw the biplot of individuals and variable categories:</p>
<pre class="r"><code>fviz_mca_biplot(res.mca, 
               repel = TRUE, # Avoid text overlapping (slow if many point)
               ggtheme = theme_minimal())</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-mca-biplot-1.png" width="576" /></p>
<p>The plot above shows a global pattern within the data. Rows (individuals) are represented by blue points and columns (variable categories) by red triangles.</p>
<p>The distance between any row points or column points gives a measure of their similarity (or dissimilarity). Row points with similar profile are closed on the factor map. The same holds true for column points.</p>
</div>
<div id="graph-of-variables" class="section level3">
<h3>Graph of variables</h3>
<div id="results" class="section level4">
<h4>Results</h4>
<p>The function <code>get_mca_var()</code> [in <em>factoextra</em>] is used to extract the results for variable categories. This function returns a list containing the coordinates, the cos2 and the contribution of variable categories:</p>
<pre class="r"><code>var <- get_mca_var(res.mca)
var</code></pre>
<pre><code>## Multiple Correspondence Analysis Results for variables
##  ===================================================
##   Name       Description                  
## 1 "$coord"   "Coordinates for categories" 
## 2 "$cos2"    "Cos2 for categories"        
## 3 "$contrib" "contributions of categories"</code></pre>
<p>The components of the <code>get_mca_var()</code> can be used in the plot of rows as follow:</p>
<ul>
<li><code>var$coord</code>: coordinates of variables to create a scatter plot</li>
<li><code>var$cos2</code>: represents the quality of the representation for variables on the factor map.</li>
<li><code>var$contrib</code>: contains the contributions (in percentage) of the variables to the definition of the dimensions.</li>
</ul>
<div class="success">
<p>
Note that, it’s possible to plot variable categories and to color them according to either i) their quality on the factor map (cos2) or ii) their contribution values to the definition of dimensions (contrib).
</p>
</div>
<p>The different components can be accessed as follow:</p>
<pre class="r"><code># Coordinates
head(var$coord)
# Cos2: quality on the factore map
head(var$cos2)
# Contributions to the principal components
head(var$contrib)</code></pre>
<p>In this section, we’ll describe how to visualize variable categories only. Next, we’ll highlight variable categories according to either i) their quality of representation on the factor map or ii) their contributions to the dimensions.</p>
</div>
<div id="correlation-between-variables-and-principal-dimensions" class="section level4">
<h4>Correlation between variables and principal dimensions</h4>
<p>To visualize the correlation between variables and MCA principal dimensions, type this:</p>
<pre class="r"><code>fviz_mca_var(res.mca, choice = "mca.cor", 
            repel = TRUE, # Avoid text overlapping (slow)
            ggtheme = theme_minimal())</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-correlation-variables-and-dimensions-1.png" width="384" /></p>
<div class="success">
<ul>
<li>
<p>
The plot above helps to identify variables that are the most correlated with each dimension. The squared correlations between variables and the dimensions are used as coordinates.
</p>
</li>
<li>
<p>
It can be seen that, the variables Diarrhae, Abdominals and Fever are the most correlated with dimension 1. Similarly, the variables Courgette and Potato are the most correlated with dimension 2.
</p>
</li>
</ul>
</div>
</div>
<div id="coordinates-of-variable-categories" class="section level4">
<h4>Coordinates of variable categories</h4>
<p>The R code below displays the coordinates of each variable categories in each dimension (1, 2 and 3):</p>
<pre class="r"><code>head(round(var$coord, 2), 4)</code></pre>
<pre><code>##          Dim 1 Dim 2 Dim 3 Dim 4 Dim 5
## Nausea_n  0.27  0.12 -0.27  0.03  0.07
## Nausea_y -0.96 -0.43  0.95 -0.12 -0.26
## Vomit_n   0.48 -0.41  0.08  0.27  0.05
## Vomit_y  -0.72  0.61 -0.13 -0.41 -0.08</code></pre>
<p>Use the function <code>fviz_mca_var()</code> [in <em>factoextra</em>] to visualize only variable categories:</p>
<pre class="r"><code>fviz_mca_var(res.mca, 
             repel = TRUE, # Avoid text overlapping (slow)
             ggtheme = theme_minimal())</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-mca-variables-1.png" width="480" /></p>
<p>It’s possible to change the color and the shape of the variable points using the arguments <code>col.var</code> and <code>shape.var</code> as follow:</p>
<pre class="r"><code>fviz_mca_var(res.mca, col.var="black", shape.var = 15,
             repel = TRUE)</code></pre>
<p>The plot above shows the relationships between variable categories. It can be interpreted as follow:</p>
<ul>
<li>Variable categories with a similar profile are grouped together.</li>
<li>Negatively correlated variable categories are positioned on opposite sides of the plot origin (opposed quadrants).
</li>
<li>The distance between category points and the origin measures the quality of the variable category on the factor map. Category points that are away from the origin are well represented on the factor map.</li>
</ul>
</div>
<div id="quality-of-representation-of-variable-categories" class="section level4">
<h4>Quality of representation of variable categories</h4>
<p>The two dimensions 1 and 2 are sufficient to retain 46% of the total inertia (variation) contained in the data. Not all the points are equally well displayed in the two dimensions.</p>
<p>The quality of the representation is called the <em>squared cosine</em> (cos2), which measures the degree of association between variable categories and a particular axis. The cos2 of variable categories can be extracted as follow:</p>
<pre class="r"><code>head(var$cos2, 4)</code></pre>
<pre><code>##          Dim 1  Dim 2  Dim 3   Dim 4   Dim 5
## Nausea_n 0.256 0.0528 0.2527 0.00408 0.01947
## Nausea_y 0.256 0.0528 0.2527 0.00408 0.01947
## Vomit_n  0.344 0.2512 0.0107 0.11229 0.00413
## Vomit_y  0.344 0.2512 0.0107 0.11229 0.00413</code></pre>
<p>If a variable category is well represented by two dimensions, the sum of the cos2 is closed to one. For some of the row items, more than 2 dimensions are required to perfectly represent the data.</p>
<p>It’s possible to color variable categories by their cos2 values using the argument col.var = “cos2”. This produces a gradient colors, which can be customized using the argument <code>gradient.cols</code>. For instance, <code>gradient.cols = c("white", "blue", "red")</code> means that:</p>
<ul>
<li>variable categories with low cos2 values will be colored in “white”</li>
<li>variable categories with mid cos2 values will be colored in “blue”</li>
<li>variable categories with high cos2 values will be colored in “red”</li>
</ul>
<pre class="r"><code># Color by cos2 values: quality on the factor map
fviz_mca_var(res.mca, col.var = "cos2",
             gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"), 
             repel = TRUE, # Avoid text overlapping
             ggtheme = theme_minimal())</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-row-points-cos2-1.png" width="528" /></p>
<p>Note that, it’s also possible to change the transparency of the variable categories according to their cos2 values using the option <code>alpha.var = "cos2"</code>. For example, type this:</p>
<pre class="r"><code># Change the transparency by cos2 values
fviz_mca_var(res.mca, alpha.var="cos2",
             repel = TRUE,
             ggtheme = theme_minimal())</code></pre>
<p>You can visualize the cos2 of row categories on all the dimensions using the corrplot package:</p>
<pre class="r"><code>library("corrplot")
corrplot(var$cos2, is.corr=FALSE)</code></pre>
<p>It’s also possible to create a bar plot of variable cos2 using the function <code>fviz_cos2()</code>[in <em>factoextra</em>]:</p>
<pre class="r"><code># Cos2 of variable categories on Dim.1 and Dim.2
fviz_cos2(res.mca, choice = "var", axes = 1:2)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-mca-variable-cos2-1.png" width="480" /></p>
<div class="warning">
<p>
Note that, variable categories <em>Fish_n, Fish_y, Icecream_n and Icecream_y</em> are not very well represented by the first two dimensions. This implies that the position of the corresponding points on the scatter plot should be interpreted with some caution. A higher dimensional solution is probably necessary.
</p>
</div>
</div>
<div id="contribution-of-variable-categories-to-the-dimensions" class="section level4">
<h4>Contribution of variable categories to the dimensions</h4>
<p>The contribution of the variable categories (in %) to the definition of the dimensions can be extracted as follow:</p>
<pre class="r"><code>head(round(var$contrib,2), 4)</code></pre>
<pre><code>##          Dim 1 Dim 2 Dim 3 Dim 4 Dim 5
## Nausea_n  1.52  0.81  4.67  0.08  0.49
## Nausea_y  5.43  2.91 16.73  0.30  1.76
## Vomit_n   3.73  7.07  0.36  4.26  0.19
## Vomit_y   5.60 10.61  0.54  6.39  0.29</code></pre>
<div class="success">
<p>
The variable categories with the larger value, contribute the most to the definition of the dimensions. Variable categories that contribute the most to Dim.1 and Dim.2 are the most important in explaining the variability in the data set.
</p>
</div>
<p>The function <code>fviz_contrib()</code> [factoextra package] can be used to draw a bar plot of the contribution of variable categories. The R code below shows the top 15 variable categories contributing to the dimensions:</p>
<pre class="r"><code># Contributions of rows to dimension 1
fviz_contrib(res.mca, choice = "var", axes = 1, top = 15)
# Contributions of rows to dimension 2
fviz_contrib(res.mca, choice = "var", axes = 2, top = 15)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-variable-contributions-bar-plot-1.png" width="316.8" /><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-variable-contributions-bar-plot-2.png" width="316.8" /></p>
<p>The total contributions to dimension 1 and 2 are obtained as follow:</p>
<pre class="r"><code># Total contribution to dimension 1 and 2
fviz_contrib(res.mca, choice = "var", axes = 1:2, top = 15)</code></pre>
<p>The red dashed line on the graph above indicates the expected average value, If the contributions were uniform. The calculation of the expected contribution value, under null hypothesis, has been detailed in the principal component analysis chapter.</p>
<p>It can be seen that:</p>
<ul>
<li>the categories Abdo_n, Diarrhea_n, Fever_n and Mayo_n are the most important in the definition of the first dimension.</li>
<li>The categories Courg_n, Potato_n, Vomit_y and Icecream_n contribute the most to the dimension 2</li>
</ul>
<p>The most important (or, contributing) variable categories can be highlighted on the scatter plot as follow:</p>
<pre class="r"><code>fviz_mca_var(res.mca, col.var = "contrib",
             gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"), 
             repel = TRUE, # avoid text overlapping (slow)
             ggtheme = theme_minimal()
             )</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-row-contribution-1.png" width="528" /></p>
<div class="success">
<p>
The plot above gives an idea of what pole of the dimensions the categories are actually contributing to.
</p>
<p>
It is evident that the categories Abdo_n, Diarrhea_n, Fever_n and Mayo_n have an important contribution to the positive pole of the first dimension, while the categories Fever_y and Diarrhea_y have a major contribution to the negative pole of the first dimension; etc, ….
</p>
</div>
<p>Note that, it’s also possible to control the transparency of variable categories according to their contribution values using the option <code>alpha.var = "contrib"</code>. For example, type this:</p>
<pre class="r"><code># Change the transparency by contrib values
fviz_mca_var(res.mca, alpha.var="contrib",
             repel = TRUE,
             ggtheme = theme_minimal())</code></pre>
</div>
</div>
<div id="graph-of-individuals" class="section level3">
<h3>Graph of individuals</h3>
<div id="results-1" class="section level4">
<h4>Results</h4>
<p>The function <code>get_mca_ind()</code> [in <em>factoextra</em>] is used to extract the results for individuals. This function returns a list containing the coordinates, the cos2 and the contributions of individuals:</p>
<pre class="r"><code>ind <- get_mca_ind(res.mca)
ind</code></pre>
<pre><code>## Multiple Correspondence Analysis Results for individuals
##  ===================================================
##   Name       Description                       
## 1 "$coord"   "Coordinates for the individuals" 
## 2 "$cos2"    "Cos2 for the individuals"        
## 3 "$contrib" "contributions of the individuals"</code></pre>
<div class="warning">
<p>
The result for individuals gives the same information as described for variable categories. For this reason, I’ll just displayed the result for individuals in this section without commenting.
</p>
</div>
<p>To get access to the different components, use this:</p>
<pre class="r"><code># Coordinates of column points
head(ind$coord)
# Quality of representation
head(ind$cos2)
# Contributions
head(ind$contrib)</code></pre>
</div>
<div id="plots-quality-and-contribution" class="section level4">
<h4>Plots: quality and contribution</h4>
<p>The function <code>fviz_mca_ind()</code> [in <em>factoextra</em>] is used to visualize only individuals. Like variable categories, it’s also possible to color individuals by their cos2 values:</p>
<pre class="r"><code>fviz_mca_ind(res.mca, col.ind = "cos2", 
             gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"),
             repel = TRUE, # Avoid text overlapping (slow if many points)
             ggtheme = theme_minimal())</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-mca-individuals-1.png" width="518.4" /></p>
<p>The R code below creates a bar plots of individuals cos2 and contributions:</p>
<pre class="r"><code># Cos2 of individuals
fviz_cos2(res.mca, choice = "ind", axes = 1:2, top = 20)
# Contribution of individuals to the dimensions
fviz_contrib(res.mca, choice = "ind", axes = 1:2, top = 20)</code></pre>
</div>
</div>
<div id="color-individuals-by-groups" class="section level3">
<h3>Color individuals by groups</h3>
<div class="warning">
<p>
Note that, it’s possible to color the individuals using any of the qualitative variables in the initial data table (poison)
</p>
</div>
<p>The R code below colors the individuals by groups using the levels of the variable <code>Vomiting</code>. The argument <code>habillage</code> is used to specify the factor variable for coloring the individuals by groups. A concentration ellipse can be also added around each group using the argument <code>addEllipses = TRUE</code>. If you want a confidence ellipse around the mean point of categories, use <code>ellipse.type = "confidence"</code> The argument <code>palette</code> is used to change group colors.</p>
<pre class="r"><code>fviz_mca_ind(res.mca, 
             label = "none", # hide individual labels
             habillage = "Vomiting", # color by groups 
             palette = c("#00AFBB", "#E7B800"),
             addEllipses = TRUE, ellipse.type = "confidence",
             ggtheme = theme_minimal()) </code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-biplot-change-color-group-2-factoextra-data-mining-1.png" width="480" /></p>
<p>Note that, to specify the value of the argument <code>habillage</code>, it’s also possible to use the index of the column as follow (<code>habillage = 2</code>). Additionally, you can provide an external grouping variable as follow: <code>habillage = poison$Vomiting</code>. For example:</p>
<pre class="r"><code># habillage = index of the column to be used as grouping variable
fviz_mca_ind(res.mca, habillage = 2, addEllipses = TRUE)
# habillage = external grouping variable
fviz_mca_ind(res.mca, habillage = poison$Vomiting, addEllipses = TRUE)</code></pre>
<p>If you want to color individuals using multiple categorical variables at the same time, use the function fviz_ellipses() [in <em>factoextra</em>] as follow:</p>
<pre class="r"><code>fviz_ellipses(res.mca, c("Vomiting", "Fever"),
              geom = "point")</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-plot-ellipse-1.png" width="499.2" /></p>
<p>Alternatively, you can specify categorical variable indices:</p>
<pre class="r"><code>fviz_ellipses(res.mca, 1:4, geom = "point")</code></pre>
</div>
<div id="dimension-description" class="section level3">
<h3>Dimension description</h3>
<p>The function <code>dimdesc()</code> [in FactoMineR] can be used to identify the most correlated variables with a given dimension:</p>
<pre class="r"><code>res.desc <- dimdesc(res.mca, axes = c(1,2))
# Description of dimension 1
res.desc[[1]]
# Description of dimension 2
res.desc[[2]]</code></pre>
</div>
</div>
<div id="supplementary-elements" class="section level2">
<h2>Supplementary elements</h2>
<div id="definition-and-types" class="section level3">
<h3>Definition and types</h3>
<p>As described above (section @ref(mca-data-format)), the data set <em>poison</em> contains:</p>
<ul>
<li><em>supplementary continuous variables</em> (quanti.sup = 1:2, columns 1 and 2 corresponding to the columns <code>age</code> and <code>time</code>, respectively)</li>
<li><em>supplementary qualitative variables</em> (quali.sup = 3:4, corresponding to the columns <code>Sick</code> and <code>Sex</code>, respectively). This factor variables are used to color individuals by groups</li>
</ul>
<p>The data doesn’t contain <em>supplementary individuals</em>. However, for demonstration, we’ll use the individuals 53:55 as supplementary individuals.</p>
<div class="warning">
<p>
Supplementary variables and individuals are not used for the determination of the principal dimensions. Their coordinates are predicted using only the information provided by the performed multiple correspondence analysis on active variables/individuals.
</p>
</div>
</div>
<div id="specification-in-mca" class="section level3">
<h3>Specification in MCA</h3>
<p>To specify supplementary individuals and variables, the function <em>MCA</em>() can be used as follow :</p>
<pre class="r"><code>MCA(X,  ind.sup = NULL, quanti.sup = NULL, quali.sup=NULL,
    graph = TRUE, axes = c(1,2))</code></pre>
<ul>
<li><code>X</code>: a data frame. Rows are individuals and columns are variables.</li>
<li><code>ind.sup</code>: a numeric vector specifying the indexes of the supplementary individuals.</li>
<li><code>quanti.sup</code>, <code>quali.sup</code>: a numeric vector specifying, respectively, the indexes of the quantitative and qualitative variables.</li>
<li><code>graph</code>: a logical value. If TRUE a graph is displayed.</li>
<li><code>axes</code>: a vector of length 2 specifying the components to be plotted.</li>
</ul>
<p>For example, type this:</p>
<pre class="r"><code>res.mca <- MCA(poison, ind.sup = 53:55, 
               quanti.sup = 1:2, quali.sup = 3:4,  graph=FALSE)</code></pre>
</div>
<div id="results-2" class="section level3">
<h3>Results</h3>
<p>The predicted results for supplementary individuals/variables can be extracted as follow:</p>
<pre class="r"><code># Supplementary qualitative variable categories
res.mca$quali.sup
# Supplementary quantitative variables
res.mca$quanti
# Supplementary individuals
res.mca$ind.sup</code></pre>
</div>
<div id="plots" class="section level3">
<h3>Plots</h3>
<p>To make a biplot of individuals and variable categories, type this:</p>
<pre class="r"><code># Biplot of individuals and variable categories
fviz_mca_biplot(res.mca, repel = TRUE,
                ggtheme = theme_minimal())</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-biplot-supplementary-1.png" width="480" /></p>
<div class="block">
<ul>
<li>
Active individuals are in blue
</li>
<li>
Supplementary individuals are in darkblue
</li>
<li>
Active variable categories are in red
</li>
<li>
Supplementary variable categories are in darkgreen
</li>
</ul>
</div>
<p>If you want to highlight the correlation between variables (active &amp; supplementary) and dimensions, use the function <code>fviz_mca_var()</code> with the argument choice = “mca.cor”:</p>
<pre class="r"><code>fviz_mca_var(res.mca, choice = "mca.cor",
             repel = TRUE)</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-variables-correlation-data-mining-1.png" width="432" /></p>
<p>The R code below plots qualitative variable categories (active &amp; supplementary variables):</p>
<pre class="r"><code>fviz_mca_var(res.mca, repel = TRUE,
             ggtheme= theme_minimal())</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-supplementary-qualitative-variables-1.png" width="432" /></p>
<p>For supplementary quantitative variables, type this:</p>
<pre class="r"><code>fviz_mca_var(res.mca, choice = "quanti.sup",
             ggtheme = theme_minimal())</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-supplementary-quantitative-variables-1.png" width="336" /></p>
<p>To visualize supplementary individuals, type this:</p>
<pre class="r"><code>fviz_mca_ind(res.mca, 
             label = "ind.sup", #Show the label of ind.sup only
             ggtheme = theme_minimal())</code></pre>
<p><img src="https://www.sthda.com/english/sthda-upload/figures/principal-component-methods/008-multiple-correspondence-analysis-supplementary-individuals-1.png" width="336" /></p>
</div>
</div>
<div id="filtering-results" class="section level2">
<h2>Filtering results</h2>
<p>If you have many individuals/variable categories, it’s possible to visualize only some of them using the arguments <code>select.ind</code> and <code>select.var</code>.</p>
<p><code>select.ind, select.var</code>: a selection of individuals/variable categories to be drawn. Allowed values are <code>NULL</code> or a <code>list</code> containing the arguments name, cos2 or contrib:</p>
<ul>
<li><code>name</code>: is a character vector containing individuals/variable category names to be plotted</li>
<li><code>cos2</code>: if cos2 is in [0, 1], ex: 0.6, then individuals/variable categories with a cos2 > 0.6 are plotted</li>
<li><code>if cos2 > 1</code>, ex: 5, then the top 5 active individuals/variable categories and top 5 supplementary columns/rows with the highest cos2 are plotted</li>
<li><code>contrib</code>: if contrib > 1, ex: 5, then the top 5 individuals/variable categories with the highest contributions are plotted</li>
</ul>
<pre class="r"><code># Visualize variable categories with cos2 >= 0.4
fviz_mca_var(res.mca, select.var = list(cos2 = 0.4))
# Top 10 active variables with the highest cos2
fviz_mca_var(res.mca, select.var= list(cos2 = 10))
# Select by names
name <- list(name = c("Fever_n", "Abdo_y", "Diarrhea_n",
                      "Fever_Y", "Vomit_y", "Vomit_n"))
fviz_mca_var(res.mca, select.var = name)
# top 5 contributing individuals and variable categories
fviz_mca_biplot(res.mca, select.ind = list(contrib = 5), 
               select.var = list(contrib = 5),
               ggtheme = theme_minimal())</code></pre>
<div class="warning">
<p>
When the selection is done according to the contribution values, supplementary individuals/variable categories are not shown because they don’t contribute to the construction of the axes.
</p>
</div>
</div>
<div id="exporting-results" class="section level2">
<h2>Exporting results</h2>
<div id="export-plots-to-pdfpng-files" class="section level3">
<h3>Export plots to PDF/PNG files</h3>
<p>Two steps:</p>
<ol style="list-style-type: decimal">
<li>Create the plot of interest as an R object:</li>
</ol>
<pre class="r"><code># Scree plot
scree.plot <- fviz_eig(res.mca)
# Biplot of row and column variables
biplot.mca <- fviz_mca_biplot(res.mca)</code></pre>
<ol start="2" style="list-style-type: decimal">
<li>Export the plots into a single pdf file as follow (one plot per page):</li>
</ol>
<pre class="r"><code>library(ggpubr)
ggexport(plotlist = list(scree.plot, biplot.mca), 
         filename = "MCA.pdf")</code></pre>
<p>More options at: Chapter @ref(principal-component-analysis) (section: Exporting results).</p>
</div>
<div id="export-results-to-txtcsv-files" class="section level3">
<h3>Export results to txt/csv files</h3>
<p>Easy to use R function: <code>write.infile()</code> [in <em>FactoMineR</em>] package.</p>
<pre class="r"><code># Export into a TXT file
write.infile(res.mca, "mca.txt", sep = "\t")
# Export into a CSV file
write.infile(res.mca, "mca.csv", sep = ";")</code></pre>
</div>
</div>
<div id="summary" class="section level2">
<h2>Summary</h2>
<p>In conclusion, we described how to perform and interpret multiple correspondence analysis (CA). We computed MCA using the <em>MCA</em>() function [FactoMineR package]. Next, we used the <em>factoextra</em> R package to produce ggplot2-based visualization of the CA results.</p>
<p>Other functions [packages] to compute MCA in R, include:</p>
<ol style="list-style-type: decimal">
<li>Using <code>dudi.acm()</code> [ade4]</li>
</ol>
<pre class="r"><code>library("ade4")
res.mca <- dudi.acm(poison.active, scannf = FALSE, nf = 5)</code></pre>
<ol start="4" style="list-style-type: decimal">
<li>Using <code>epMCA()</code> [ExPosition]</li>
</ol>
<pre class="r"><code>library("ExPosition")
res.mca <- epMCA(poison.active, graph = FALSE, correction = "bg")</code></pre>
<p>No matter what functions you decide to use, in the list above, the factoextra package can handle the output.</p>
<pre class="r"><code>fviz_eig(res.mca)     # Scree plot
fviz_mca_biplot(res.mca) # Biplot of rows and columns</code></pre>
</div>
<div id="further-reading" class="section level2">
<h2>Further reading</h2>
<p>For the mathematical background behind MCA, refer to the following video courses, articles and books:</p>
<ul>
<li>Correspondence Analysis Course Using FactoMineR (Video courses). <a href="https://goo.gl/Hhh6hC" class="uri">https://goo.gl/Hhh6hC</a></li>
<li>Exploratory Multivariate Analysis by Example Using R (book) <span class="citation">(Husson, Le, and Pagès 2017)</span>.</li>
<li>Principal component analysis (article) <span class="citation">(Abdi and Williams 2010)</span>. <a href="https://goo.gl/1Vtwq1" class="uri">https://goo.gl/1Vtwq1</a>.</li>
<li>Correspondence analysis basics (blog post). <a href="https://goo.gl/Xyk8KT" class="uri">https://goo.gl/Xyk8KT</a>.</li>
</ul>
</div>
<div id="references" class="section level2 unnumbered">
<h2>References</h2>
<div id="refs" class="references">
<div id="ref-abdi2010">
<p>Abdi, Hervé, and Lynne J. Williams. 2010. “Principal Component Analysis.” <em>John Wiley and Sons, Inc. WIREs Comp Stat</em> 2: 433–59. <a href="http://staff.ustc.edu.cn/~zwp/teach/MVA/abdi-awPCA2010.pdf" class="uri">http://staff.ustc.edu.cn/~zwp/teach/MVA/abdi-awPCA2010.pdf</a>.</p>
</div>
<div id="ref-husson2017">
<p>Husson, Francois, Sebastien Le, and Jérôme Pagès. 2017. <em>Exploratory Multivariate Analysis by Example Using R</em>. 2nd ed. Boca Raton, Florida: Chapman; Hall/CRC. <a href="http://factominer.free.fr/bookV2/index.html" class="uri">http://factominer.free.fr/bookV2/index.html</a>.</p>
</div>
</div>
</div>
</div><!--end rdoc-->
 
<!-- END HTML -->]]></description>
			<pubDate>Sun, 24 Sep 2017 07:05:00 +0200</pubDate>
			
		</item>
		
	</channel>
</rss>
