| Modifier and Type | Method and Description |
|---|---|
| public void | addObservation(double[]
the independent variables which form the design matrix x, double the dependent or response variable y)Adds one observation to the regression model. |
| public void | addObservations(double[][]
a series of observations on the independent variables x, double[] a series of observations on the dependent variable
The length of x and y must be the same y)Adds a series of observations to the regression model. |
| public void | |
| public long | Returns: Number of observationsReturns the number of observations added to the regression model. |
| public boolean | Returns: true if constant exists, false otherwiseReturns true if a constant has been included false otherwise. |
| public RegressionResults | Returns: RegressionResults acts as a container of regression outputPerforms a regression on data present in buffers and outputs a RegressionResults object |
| public RegressionResults | Returns: RegressionResults acts as a container of regression outputan array of indices of regressors to include variablesToInclude)Performs a regression on data present in buffers including only regressors indexed in variablesToInclude and outputs a RegressionResults object |
| addObservation | back to summary |
|---|---|
| public void addObservation(double[] x, double y) throws ModelSpecificationException Adds one observation to the regression model.
| |
| addObservations | back to summary |
|---|---|
| public void addObservations(double[][] x, double[] y) throws ModelSpecificationException Adds a series of observations to the regression model. The lengths of x and y must be the same and x must be rectangular.
| |
| clear | back to summary |
|---|---|
| public void clear() Clears internal buffers and resets the regression model. This means all data and derived values are initialized | |
| getN | back to summary |
|---|---|
| public long getN() Returns the number of observations added to the regression model.
| |
| hasIntercept | back to summary |
|---|---|
| public boolean hasIntercept() Returns true if a constant has been included false otherwise.
| |
| regress | back to summary |
|---|---|
| public RegressionResults regress() throws ModelSpecificationException, NoDataException Performs a regression on data present in buffers and outputs a RegressionResults object
| |
| regress | back to summary |
|---|---|
| public RegressionResults regress(int[] variablesToInclude) throws ModelSpecificationException, MathIllegalArgumentException Performs a regression on data present in buffers including only regressors indexed in variablesToInclude and outputs a RegressionResults object
| |