You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Classes > TRegStatsClass Class > TRegStatsClass Properties > TRegStatsClass.R2 Property
Dew Stats for .NET
ContentsIndexHome
PreviousUpNext
TRegStatsClass.R2 Property

Returns the coefficient of determination (R squared).

Syntax
C#
Visual Basic
public double R2;

Returns the coefficient of determination (R squared). R2 is a measure of the amount of reduction in the variability of Y obtained by using the regressor variables X. 

If R lies in the [0,1] interval the regression model adequately describes relation between Y and X. However, a large value of R2 does not necessariliy imply that regression model is a good one. Adding variable to the model will always increase R2, regardless of whether or not the additional variable is statistically significant. Thus, models that have large values or R2 may yield poor predictions of new observations or estimates of the mean response.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!