Difference between revisions of "Documentation/How Tos/Calc: RSQ function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(→See also:) |
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
||
Line 10: | Line 10: | ||
: Any text or empty entries are ignored. | : Any text or empty entries are ignored. | ||
− | : <tt>'''RSQ'''</tt> calculates the square of the Pearson correlation coefficient (which is conventionally given the letter <i>r</i>, hence "<i>r</i> squared"). See the <tt> | + | : <tt>'''RSQ'''</tt> calculates the square of the Pearson correlation coefficient (which is conventionally given the letter <i>r</i>, hence "<i>r</i> squared"). See the <tt>* [[Documentation/How_Tos/Calc: PEARSON function|PEARSON]]'''</tt> function for more details. |
: <tt>'''RSQ'''</tt> indicates how much of the variance in <tt>'''y'''</tt> is attributable to the variance in <tt>'''x'''</tt>. | : <tt>'''RSQ'''</tt> indicates how much of the variance in <tt>'''y'''</tt> is attributable to the variance in <tt>'''x'''</tt>. | ||
: <i>Advanced topic:</i> | : <i>Advanced topic:</i> | ||
− | : The parameters <tt>'''x'''</tt> and <tt>'''y'''</tt> are always evaluated as [[Documentation/How_Tos/Using Arrays|array formulas]]. | + | : The parameters <tt>'''x'''</tt> and <tt>'''y'''</tt> are always evaluated as * [[Documentation/How_Tos/Using Arrays|array formulas]]. |
=== Example: === | === Example: === | ||
Line 21: | Line 21: | ||
: returns the square of the Pearson correlation coefficient for the two sets of data in A1:A30 and B1:B30. | : returns the square of the Pearson correlation coefficient for the two sets of data in A1:A30 and B1:B30. | ||
− | + | {{Documentation/SeeAlso| | |
− | [[Documentation/How_Tos/Calc: CORREL function| | + | * [[Documentation/How_Tos/Calc: CORREL function|CORREL]], |
− | [[Documentation/How_Tos/Calc: PEARSON function| | + | * [[Documentation/How_Tos/Calc: PEARSON function|PEARSON]] |
− | [[Documentation/How_Tos/Using Arrays| | + | * [[Documentation/How_Tos/Using Arrays|Array formulas]] |
− | [[Documentation/How_Tos/Calc: Statistical functions| | + | * [[Documentation/How_Tos/Calc: Statistical functions|Statistical functions]] |
− | [[Documentation/How_Tos/Calc: Functions listed alphabetically| | + | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] |
− | [[Documentation/How_Tos/Calc: Functions listed by category| | + | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} |
Revision as of 14:16, 25 February 2009
RSQ
Returns the square of the Pearson correlation coefficient of two sets of data.
Syntax:
RSQ(x; y)
- where x and y are ranges or arrays containing the two sets of data.
- Any text or empty entries are ignored.
- RSQ calculates the square of the Pearson correlation coefficient (which is conventionally given the letter r, hence "r squared"). See the * PEARSON function for more details.
- RSQ indicates how much of the variance in y is attributable to the variance in x.
- Advanced topic:
- The parameters x and y are always evaluated as * array formulas.
Example:
RSQ(A1:A30; B1:B30)
- returns the square of the Pearson correlation coefficient for the two sets of data in A1:A30 and B1:B30.