Accord.Statistics.Models.Regression.LogisticRegression.GetConfidenceInterval C# (CSharp) Method

GetConfidenceInterval() public method

Gets the 95% confidence interval for the Odds Ratio for a given coefficient.
public GetConfidenceInterval ( int index ) : DoubleRange
index int /// The coefficient's index. The first value /// (at zero index) is the intercept value. ///
return AForge.DoubleRange
        public DoubleRange GetConfidenceInterval(int index)
        {
            double coeff = GetCoefficient(index);
            double error = StandardErrors[index];

            double upper = coeff + 1.9599 * error;
            double lower = coeff - 1.9599 * error;

            return new DoubleRange(Math.Exp(lower), Math.Exp(upper));
        }