Difference between revisions of "Documentation/How Tos/Calc: RSQ function"
From Apache OpenOffice Wiki
		< Documentation | How Tos
		
		
OOoWikiBot (talk | contribs) m (Robot: Automated text replacement %s)  | 
				m  | 
				||
| Line 28: | Line 28: | ||
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]  | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]  | ||
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}  | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}  | ||
| − | [[Category: Documentation/Reference/Calc]]  | + | [[Category: Documentation/Reference/Calc/Statistical functions]]  | 
Revision as of 12:37, 17 May 2010
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.