Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWLinearRegressionANOVA



Data Type and Member Function Indexes
(exclusive of constructors and destructors)

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 Analytics.h++ 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 DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.