| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>ContingencyTable: To Configuration (ca)...</title> |
| 3 |
<style> |
| 4 |
td { padding-left: 5pt; padding-right: 5pt; } |
| 5 |
th { padding-left: 5pt; padding-right: 5pt; } |
| 6 |
code { white-space: pre-wrap; } |
| 7 |
dd { white-space: pre-wrap; } |
| 8 |
</style> |
| 9 |
</head><body bgcolor="#FFFFFF"> |
| 10 |
|
| 11 |
<table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 |
ContingencyTable: To Configuration (ca)... |
| 13 |
</b></font></table></table> |
| 14 |
<p>A command that creates a <a href="Configuration.html">Configuration</a> object from the selected <a href="ContingencyTable.html">ContingencyTable</a> object by means of <a href="Correspondence_analysis.html">Correspondence analysis</a>.</p> |
| 15 |
<h2>Settings</h2> |
| 16 |
<dl> |
| 17 |
<dt><b>Number of dimensions</b> |
| 18 |
<dd>The dimensionality of the Configuration.</dd> |
| 19 |
<dt><b>Scaling of the final configuration</b> |
| 20 |
<dd>determines whether row points are in the centre of gravity of column points, or, column points are in the centre of gravity of row points, or, whether roes and columns are treated symmetrically.</dd> |
| 21 |
</dl> |
| 22 |
<h2>Algorithm</h2> |
| 23 |
<p>1. We start with the following transformation of the entries <i>f</i><sub><i>ij</i></sub>:</p> |
| 24 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>h</i><sub><i>ij</i></sub> = <i>f</i><sub><i>ij</i></sub> / √ (<i>f</i><sub><i>i</i>+</sub><i>f</i><sub>+<i>j</i></sub>) - √ (<i>f</i><sub><i>i</i>+</sub><i>f</i><sub>+<i>j</i></sub>) / <i>N</i>,</table> |
| 25 |
<p>where <i>h</i><sub><i>ij</i></sub> is the entry for a cell in the matrix <b>H</b> with transformed data, <i>f</i><sub><i>i</i>+</sub> is the total count for row <i>i</i>, <i>f</i><sub>+<i>j</i></sub> is the total count for column <i>j</i> and <i>N</i> is the grand total. This can be written in matrix form as:</p> |
| 26 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><b>H</b> = <b>R</b><sup>–1/2</sup><b>F</b><b>C</b><sup>–1/2</sup> – <b>R</b><sup>1/2</sup><b>uu</b>′<b>C</b><sup>1/2</sup> / <i>N</i>,</table> |
| 27 |
<p>where <b>R</b> and <b>C</b> are diagonal matrices with the row and column totals, respectively and <b>u</b> a column vector with all elements equal to 1. </p> |
| 28 |
<p>2. Next the singular value decomposition of matrix <b>H</b> is performed:</p> |
| 29 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><b>H</b> = <b>K</b> <b>Λ</b> <b>L</b>′,</table> |
| 30 |
<p>where <b>K</b>′<b>K</b> = <b>I</b>, <b>L</b>′<b>L</b> = <b>I</b>, and <b>Λ</b> is a diagonal matrix with singular values.</p> |
| 31 |
<p>3. Now the row (<b>X</b>) and column points (<b>Y</b>) can be determined. Three normalizations are possible:</p> |
| 32 |
<dl> |
| 33 |
<dt>• Scale row points in the centre of gravity of column points |
| 34 |
<dd><b>X</b> = √<i>N</i> <b>R</b><sup>–1/2</sup><b>K</b><b>Λ</b></dd> |
| 35 |
<dd><b>Y</b> = √<i>N</i> <b>C</b><sup>–1/2</sup><b>U</b></dd> |
| 36 |
<dt>• Scale column points in the centre of gravity of row points |
| 37 |
<dd><b>X</b> = √<i>N</i> <b>R</b><sup>–1/2</sup><b>K</b></dd> |
| 38 |
<dd><b>Y</b> = √<i>N</i> <b>C</b><sup>–1/2</sup><b>L</b><b>Λ</b></dd> |
| 39 |
<dt>• Treat row points and column points symmetrically |
| 40 |
<dd><b>X</b> = √<i>N</i> <b>R</b><sup>–1/2</sup><b>K</b><b>Λ</b><sup>–1/2</sup></dd> |
| 41 |
<dd><b>Y</b> = √<i>N</i> <b>C</b><sup>–1/2</sup><b>LΛ</b><sup>–1/2</sup></dd> |
| 42 |
</dl> |
| 43 |
<p>For more details see <a href="Gifi__1990_.html">Gifi (1990)</a>, chapter 8.</p> |
| 44 |
<hr> |
| 45 |
<address> |
| 46 |
<p>© djmw 20040407</p> |
| 47 |
</address> |
| 48 |
</body> |
| 49 |
</html> |