Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Business Analysis Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWLinearRegressionANOVA


Does not inherit

Local Index

Members

Synopsis

#include <rw/math/genmat.h>
#include <rw/math/mathvec.h>
#include <rw/analytics/linregress.h>
#include <rw/analytics/lranova.h>

RWGenMat<double> predictorMatrix;
RWMathVec<double> observationVector;
RWLinearRegression lr(predictorMatrix, observationVector);
RWLinearRegressionANOVA anova(lr);

Description

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.

Example

Public Constructors

RWLinearRegressionANOVA();
RWLinearRegressionANOVA(const RWLinearRegressionANOVA& a);
RWLinearRegressionANOVA(const RWLinearRegression& lr);

Public Member Functions

double 
adjRSquare() const;
double 
FStatistic() const;
double 
FStatisticCriticalValue(double alpha=.05) const;
double 
FStatisticPValue() const;
double 
meanSquareRegression() const;
double 
meanSquareResidual() const;
int 
residualDegreesOfFreedom() const;
void 
setLinearRegression(const RWLinearRegression& lr);
int 
regressionDegreesOfFreedom() const;
double 
residualSumOfSquares() const;
double 
regressionSumOfSquares() const;
double 
RSquare() const;

Public Member Operator

RWLinearRegressionANOVA&
operator=(const RWLinearRegressionANOVA& lra);


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright 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.
Contact Rogue Wave about documentation or support issues.