| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>Correlation: Confidence intervals...</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 |
Correlation: Confidence intervals... |
| 13 |
</b></font></table></table> |
| 14 |
<p>Calculates <a href="confidence_interval.html">confidence interval</a>s for the correlation coefficients from the selected <a href="Correlation.html">Correlation</a> object(s) and saves these intervals in a new <a href="TableOfReal.html">TableOfReal</a> object.</p> |
| 15 |
<h2>Settings</h2> |
| 16 |
<dl> |
| 17 |
<dt><b>Confidence level</b> |
| 18 |
<dd>the <a href="confidence_level.html">confidence level</a> you want for the confidence intervals.</dd> |
| 19 |
<dt><b>Number of tests</b> |
| 20 |
<dd>determines the <a href="Bonferroni_correction.html">Bonferroni correction</a> for the significance level. If the default value (zero) is chosen, it will be set equal to the number of correlations involved (a matrix of dimension <i>n</i> has <i>n</i>·(<i>n</i>-1)/2 correlations).</dd> |
| 21 |
<dt><b>Approximation</b> |
| 22 |
<dd>defines the approximation that will be used to calculate the confidence intervals. It is either Fisher's z transformation or Ruben's transformation. According to <a href="Boomsma__1977_.html">Boomsma (1977)</a>, Ruben's approximation is more accurate than Fisher's.</dd> |
| 23 |
</dl> |
| 24 |
<h2>Algorithm</h2> |
| 25 |
<p>We obtain intervals by the large-sample conservative multiple tests with Bonferroni inequality and the Fisher or Ruben transformation. We put the upper values of the confidence intervals in the upper triangular part of the matrix and the lower values of the confidence intervals in lower triangular part of the resulting TableOfReal object.</p> |
| 26 |
<p>In <i>Fisher's approximation</i>, for each element <i>r</i><sub><i>ij</i></sub> of the correlation matrix the confidence interval is:</p> |
| 27 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><b></b>[ tanh (<i>z</i><sub><i>ij</i></sub> - <i>z</i><sub><i>α</i>′</sub> / √(<i>N</i> - 3)) , tanh (<i>z</i><sub><i>ij</i></sub> + <i>z</i><sub><i>α</i>′</sub> / √(<i>N</i> - 3)) <b></b>],</table> |
| 28 |
<p>where <i>z</i><sub><i>ij</i></sub> is the Fisher z-transform of the correlation <i>r</i><sub><i>ij</i></sub>:</p> |
| 29 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>z</i><sub><i>ij</i></sub> = 1/2 ln ((1 + <i>r</i><sub><i>ij</i></sub>) / (1 - <i>r</i><sub><i>ij</i></sub>)), </table> |
| 30 |
<p><i>z</i><sub><i>α</i>′</sub> the Bonferroni corrected <i>z</i>-value <i>z</i><sub><i>α</i>/(2·<i>numberOfTests</i>)</sub>, </p> |
| 31 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>α</i> = 1 - <i>confidenceLevel</i>,</table> |
| 32 |
<p>and <i>N</i> the number of observations that the correlation matrix is based on.</p> |
| 33 |
<p>In <i>Ruben's approximation</i> the confidence interval for element <i>r</i><sub><i>ij</i></sub> is:</p> |
| 34 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><b></b>[ <i>x</i><sub>1</sub> / √(1 - <i>x</i><sub>1</sub><sup>2</sup>), <i>x</i><sub>2</sub> / √(1 - <i>x</i><sub>2</sub><sup>2</sup>) <b></b>]</table> |
| 35 |
<p>in which <i>x</i><sub>1</sub> and <i>x</i><sub>2</sub> are the smallest and the largest root from</p> |
| 36 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>a</i> <i>x</i><sup>2</sup> + <i>b</i> <i>x</i> + <i>c</i> = 0, with</table> |
| 37 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>a</i> = 2<i>N</i> - 3 - <i>z</i><sub><i>α</i>′</sub><sup>2</sup></table> |
| 38 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>b</i> = - 2 <i>r</i>′ √((2<i>N</i> - 3)(2<i>N</i> - 5))</table> |
| 39 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>c</i> = (2<i>N</i> - 5 - <i>z</i><sub><i>α</i>′</sub><sup>2</sup>) <i>r</i>′<sup>2</sup> - 2<i>z</i><sub><i>α</i>′</sub><sup>2</sup>, and</table> |
| 40 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>r</i>′ = <i>r</i><sub><i>ij</i></sub> / √(1 - <i>r</i><sub><i>ij</i></sub><sup>2</sup>),</table> |
| 41 |
<h3>Links to this page</h3> |
| 42 |
<ul> |
| 43 |
<li><a href="What_was_new_in_4_1_.html">What was new in 4.1?</a> |
| 44 |
</ul> |
| 45 |
<hr> |
| 46 |
<address> |
| 47 |
<p>© djmw 20040407</p> |
| 48 |
</address> |
| 49 |
</body> |
| 50 |
</html> |