Example usage for Java org.apache.commons.math3.stat.regression OLSMultipleLinearRegression fields, constructors, methods, implement or subclass
The text is from its open source code.
double | calculateAdjustedRSquared() Returns the adjusted R-squared statistic, defined by the formula R2adj = 1 - [SSR (n - 1)] / [SSTO (n - p)]where SSR is the #calculateResidualSumOfSquares() sum of squared residuals , SSTO is the #calculateTotalSumOfSquares() total sum of squares , n is the number of observations and p is the number of parameters estimated (including the intercept). If the regression is estimated without an intercept term, what is returned is |
double | calculateResidualSumOfSquares() Returns the sum of squared residuals. |
double | calculateRSquared() Returns the R-Squared statistic, defined by the formula R2 = 1 - SSR / SSTOwhere SSR is the #calculateResidualSumOfSquares() sum of squared residuals and SSTO is the #calculateTotalSumOfSquares() total sum of squares |
double | calculateTotalSumOfSquares() Returns the sum of squared deviations of Y from its mean. If the model has no intercept term, The value returned by this method is the SSTO value used in the #calculateRSquared() R-squared computation. |
double | estimateRegressandVariance() |
double[] | estimateRegressionParameters() |
double[] | estimateRegressionParametersStandardErrors() |
double[][] | estimateRegressionParametersVariance() |
double | estimateRegressionStandardError() Estimates the standard error of the regression. |
double[] | estimateResiduals() |
void | newSampleData(double[] y, double[][] x) Loads model x and y sample data, overriding any previous sample. |
void | setNoIntercept(boolean noIntercept) |