Package com.imsl.stat
Class StepwiseRegression.CoefficientTTests
java.lang.Object
com.imsl.stat.StepwiseRegression.CoefficientTTests
- All Implemented Interfaces:
Serializable
- Enclosing class:
- StepwiseRegression
CoefficientTTests() contains statistics related to the
student-t test, for each regression coefficient.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondoublegetCoefficient(int index) Returns the estimate for a coefficient of the independent variable.doublegetPValue(int index) Returns the p-value for the two-sided test \(H_0 : { \beta} = 0\) vs.doublegetStandardError(int index) Returns the estimated standard error for a coefficient estimate.doublegetTStatistic(int index) Returns the student-t test statistic for testing the i-th coefficient equal to zero (\({\beta}_{index} = 0 \)).
-
Method Details
-
getCoefficient
public double getCoefficient(int index) Returns the estimate for a coefficient of the independent variable.- Parameters:
index- anintwhich specifies the index of the coefficient whose estimate is to be returned.indexmust be between 1 and the number of independent variables.- Returns:
- a
doublewhich contains the estimate for the coefficient.
-
getStandardError
public double getStandardError(int index) Returns the estimated standard error for a coefficient estimate.- Parameters:
index- anintwhich specifies the index of the coefficient whose standard error estimate is to be returned.indexmust be between 1 and the number of independent variables.- Returns:
- a
doublewhich contains the estimated standard error for the coefficient.
-
getTStatistic
public double getTStatistic(int index) Returns the student-t test statistic for testing the i-th coefficient equal to zero (\({\beta}_{index} = 0 \)).- Parameters:
index- anintwhich specifies the index of the coefficient whose t-test statistic is to be returned.indexmust be between 1 and the number of independent variables.- Returns:
- a
doublewhich contains the estimated t-test statistic for the coefficient.
-
getPValue
public double getPValue(int index) Returns the p-value for the two-sided test \(H_0 : { \beta} = 0\) vs. \(H_1 : {\beta} \ne 0\).- Parameters:
index- anintwhich specifies the index of the coefficient whose p-value is to be returnedindexmust be between 1 and the number of independent variables- Returns:
- a
doublewhich contains the estimated p-value for the coefficient
-