How to get the r-squared value or a trend line.

Expand / Collapse
 

How to get the r-squared value or a trend line.


TASK

How to get the r-squared value or a trend line.

SOLUTION

The statistical engine can be used to calculate this value.

Getting the r-squared value of a trend line.
The r-squared value of mySeries will be stored int r2.

[C#]

double r2 = StatisticalEngine.CorrelationCoefDeterminantion("",mySeries).YValue;
 

 
[Visual Basic]

Dim r2 As Double = StatisticalEngine.CorrelationCoefDeterminantion("",mySeries).YValue
 



Rate this Article:
     

Add Your Comments


Comment require login or registration.

Details
Last Modified:Wednesday, February 10, 2010
Last Modified By: Support
Type: HOWTO
Article not rated yet.
Article has been viewed 11,293 times.
Options