TRegStatsClass Class

Source: StatTools.cs · Assembly: Dew.Stats

public class TRegStatsClass

Calculates statistics from multiple linear regression parameters.

Calculates statistics from multiple linear regression parameters. This class is used by the Dew.Stats.TMtxMulLinReg component to calculate regression statistics parameters.

Examples

csharp
using Dew.Math;
using Dew.Stats;
using Dew.Stats.Units;

namespace Dew.Examples
{
    private void Example()
    {
        Matrix A = new Matrix(0,0);
        Matrix V = new Matrix(0,0);
        TRegResultClass regres = new TRegResultClass();
        TRegStatsClass regstat = new TRegStatsClass();
        Regress.MulLinRegress(Y,A,regres.B,true,regres.YCalc,V);
        regres.CalculateRegResults(regres.Y,V,regstatfalse,null,0.03);
    }
}

Properties

NameTypeDescription
AdjustedR2DoubleReturns the adjusted coefficient of determination.
FDoubleReturns the variance ratio (explained/residual ratio).
R2DoubleReturns the coefficient of determination (R squared).
ResidualVarDoubleReturns the residual variance.
RSSDoubleReturns regression sum of squares.
SignifProbDoubleReturns the probability of F.
SSEDoubleReturns error sum of squares.
TSSDoubleReturns total sum of squares.

Methods

NameDescription
CalculateRegStatsCalculates statistics parameters from multiple linear regression.