Package com.imsl.stat
Class SelectionRegression.Statistics
java.lang.Object
com.imsl.stat.SelectionRegression.Statistics
- All Implemented Interfaces:
Serializable
- Enclosing class:
- SelectionRegression
Statistics contains statistics related to the regression
coefficients.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondouble[][]getCoefficientStatistics(int regressionIndex) Returns the coefficients statistics for each of the best regressions found for each subset considered.double[]getCriterionValues(int numVariables) Returns an array containing the best criterion values for variable subsets of a given size.int[][]getIndependentVariables(int numVariables) Returns the identification numbers for the independent variable subsets of a given size in the same order as the criteria returned bygetCriterionValues(int).
-
Method Details
-
getCriterionValues
public double[] getCriterionValues(int numVariables) Returns an array containing the best criterion values for variable subsets of a given size.- Parameters:
numVariables- Anintwhich specifies the variable subset size.- Returns:
- A
doublearray of size less than or equal tomaxSavedcontaining the criterion values.
-
getIndependentVariables
public int[][] getIndependentVariables(int numVariables) Returns the identification numbers for the independent variable subsets of a given size in the same order as the criteria returned bygetCriterionValues(int).- Parameters:
numVariables- Anintwhich specifies the variable subset size.- Returns:
- An
intmatrix of sizekbynumVariables, wherekis less than or equal tomaxSaved, containing the identification numbers for the independent variable subsets considered.
-
getCoefficientStatistics
public double[][] getCoefficientStatistics(int regressionIndex) Returns the coefficients statistics for each of the best regressions found for each subset considered.The value set by method
SelectionRegression.setMaximumBestFound(int)determines the total number of best regressions to find. The number of best regressions is equal to (maxSubsetxmaxFound), if criterionR_SQUARED_CRITERIONis specified or it is equal tomaxFoundif eitherMALLOWS_CP_CRITERIONorADJUSTED_R_SQUARED_CRITERIONis specified.Each row contains statistics related to the regression coefficients of the best models. The regressions are ordered so that the better regressions appear first. The statistic in the columns are as follows (inferences are conditional on the selected model):
Column Description 0 variable number 1 coefficient estimate 2 estimated standard error of the estimate 3 t-statistic for the test that the coefficient is 0 4 p-value for the two-sided t test - Parameters:
regressionIndex- Anintwhich specifies the index of the best regression statistics to return. There will be 0 to (maxSubsetxmaxFound- 1) best regressions ifR_SQUARED_CRITERIONis specified or 0 to (maxFound- 1) if eitherMALLOWS_CP_CRITERIONorADJUSTED_R_SQUARED_CRITERIONis specified.- Returns:
- A two-dimensional
doublearray containing the regression statistics. - See Also:
-