Package com.imsl.stat
Class LinearRegression.CoefficientTTests
java.lang.Object
com.imsl.stat.LinearRegression.CoefficientTTests
- All Implemented Interfaces:
Serializable
- Enclosing class:
- LinearRegression
Contains statistics related to the regression coefficients.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondoublegetCoefficient(int i) Returns the estimate for a coefficient.doublegetPValue(int i) Returns the p-value for the two-sided test.doublegetStandardError(int i) Returns the estimated standard error for a coefficient estimate.doublegetTStatistic(int i) Returns the t-statistic for the test that the i-th coefficient is zero.
-
Method Details
-
getCoefficient
public double getCoefficient(int i) Returns the estimate for a coefficient.- Parameters:
i- anintwhich specifies the index of the coefficient whose estimate is to be returned.- Returns:
- a
doublewhich contains the estimate for the i-th coefficient.
-
getStandardError
public double getStandardError(int i) Returns the estimated standard error for a coefficient estimate.- Parameters:
i- anintwhich specifies the index of the coefficient whose standard error estimate is to be returned.- Returns:
- a
doublewhich contains the estimated standard error for the i-th coefficient estimate.
-
getTStatistic
public double getTStatistic(int i) Returns the t-statistic for the test that the i-th coefficient is zero.- Parameters:
i- anintspecifying the index of the coefficient whose standard error estimate is to be returned.- Returns:
- a
doublewhich contains the estimated standard error for the i-th coefficient estimate.
-
getPValue
public double getPValue(int i) Returns the p-value for the two-sided test.- Parameters:
i- anintwhich specifies the index of the coefficient whose p-value is to be returned.- Returns:
- a
doublewhich contains the p-value for the i-th coefficient estimate.
-