SourcePro C++ 13.0 |
SourcePro® C++ API Reference Guide |
Product Documentation: SourcePro C++ Documentation Home |
Provides information on the variance of residual errors for a linear regression model. More...
#include <rw/analytics/lranova.h>
Public Member Functions | |
RWLinearRegressionANOVA () | |
RWLinearRegressionANOVA (const RWLinearRegressionANOVA &a) | |
RWLinearRegressionANOVA (const RWLinearRegression &lr) | |
double | adjRSquare () const |
double | FStatistic () const |
double | FStatisticCriticalValue (double alpha=.05) const |
double | FStatisticPValue () const |
double | meanSquareRegression () const |
double | meanSquareResidual () const |
RWLinearRegressionANOVA & | operator= (const RWLinearRegressionANOVA &lra) |
int | regressionDegreesOfFreedom () const |
double | regressionSumOfSquares () const |
int | residualDegreesOfFreedom () const |
double | residualSumOfSquares () const |
double | RSquare () const |
void | setLinearRegression (const RWLinearRegression &lr) |
ANOVA stands for analysis of variance. For the Linear Algebra Module class RWLinearRegressionANOVA, the analyzed variance is the variance of residual errors in a linear regression model, also known as the regression's goodness of fit.
Once an instance of RWLinearRegressionANOVA is constructed with a linear regression model, it can be queried for values related to goodness of fit, including the residual sum of squares, the coefficient of determination, and the F statistic.
RWLinearRegressionANOVA::RWLinearRegressionANOVA | ( | ) |
Constructs an empty ANOVA object. Behavior undefined.
RWLinearRegressionANOVA::RWLinearRegressionANOVA | ( | const RWLinearRegressionANOVA & | a | ) |
Constructs a copy of a.
RWLinearRegressionANOVA::RWLinearRegressionANOVA | ( | const RWLinearRegression & | lr | ) |
Constructs an ANOVA object for the linear regression lr.
|
inline |
Returns the adjusted coefficient of determination as defined by the following formula:
|
inline |
Returns the overall F statistic for the model as defined in Section 3.2, "Multiple Linear Regression," in the Business Analysis Module User's Guide.
|
inline |
Returns the alpha level critical value for the overall F statistic.
|
inline |
Returns the P-value for the overall F statistic.
|
inline |
Returns the quotient of the regression sum of squares and the number of degrees of freedom for the regression.
|
inline |
Returns the quotient of the residual sum of squares, RSS, and the number of degrees of freedom for the model.
RWLinearRegressionANOVA& RWLinearRegressionANOVA::operator= | ( | const RWLinearRegressionANOVA & | lra | ) |
Copies the contents of lra to self.
|
inline |
Returns the number of degrees of freedom for the model, defined as 1 less than the number of parameters in the model.
|
inline |
Returns the quantity , where
|
inline |
Returns the residual degrees of freedom, defined as the number of observations minus the number of parameters.
|
inline |
Returns the quantity RSS as defined by
|
inline |
Returns the coefficient of determination as defined by the following formula:
void RWLinearRegressionANOVA::setLinearRegression | ( | const RWLinearRegression & | lr | ) |
Sets the linear regression for which the analysis of variance is to be performed.
Copyright © 2014 Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.