NMath Stats User's Guide

TOC |  Previous |  Next |  Index

7.6 Significance of the Overall Model (.NET, C#, CSharp, Visual Basic, VB.NET)

Class LinearRegressionAnova tests the overall model significance for linear regressions. Simply construct a LinearRegressionAnova from a LinearRegression object:

LinearRegressionAnova lrAnova = new LinearRegressionAnova( lr );

A variety of properties are provided for assessing the significance of the overall model:

For example:

LinearRegressionAnova lrAnova = new LinearRegressionAnova( lr );
double sse = lrAnova.ResidualSumOfSquares;
double r2 = lrAnova.RSquared;
double fstat = lrAnova.FStatistic;
double fstatPval = lrAnova.FStatisticPValue;

Lastly, the FStatisticCriticalValue() function computes the critical value for the F statistic at a given significance level:

double critVal = lrAnova.FStatisticCriticalValue(.05);

TOC |  Previous |  Next |  Index