public class LinearRegression.CaseStatistics extends Object
CaseStatistics
allows for the computation of
predicted values, confidence intervals, and diagnostics for detecting
outliers and cases that greatly influence the fitted regression.Modifier and Type | Method and Description |
---|---|
double[] |
getConfidenceInterval()
Returns the Confidence Interval of the population mean for an
observation.
|
double |
getCooksDistance()
Returns Cook's Distance for an observation.
|
double |
getDFFITS()
Returns DFFITS for an observation.
|
double |
getJackknifeResidual()
Returns the Jackknife Residual for an observation.
|
double |
getLeverage()
Returns the Leverage for an observation.
|
double |
getObservedResponse()
Returns the observed response for an observation.
|
double |
getPredictedResponse()
Returns the predicted response for an observation.
|
double[] |
getPredictionInterval()
Returns the Prediction Interval of the predicted response for an
observation.
|
double |
getResidual()
Returns the Residual for an observation.
|
double |
getStandardizedResidual()
Returns the Standardized Residual for an observation.
|
void |
setConLevelMean(double conpcm)
Sets the confidence level for two-sided confidence intervals of the
population mean.
|
void |
setConLevelPred(double conpcp)
Sets the confidence level for two-sided prediction intervals.
|
public double[] getConfidenceInterval()
The width of the confidence interval depends on the confidence level
set by setConLevelMean(double)
.
double
[2] array containing the Confidence
Interval of the population mean at the given observation.public double getCooksDistance()
double
containing Cook's Distance for an
observationpublic double getDFFITS()
double
containing the DFFITS value for an
observationpublic double getJackknifeResidual()
double
containing the Jackknife Residual for
an observationpublic double getLeverage()
double
containing the Leverage for an
observationpublic double getObservedResponse()
double
containing the observed response for an
observationpublic double getPredictedResponse()
double
containing the predicted response for
an observationpublic double[] getPredictionInterval()
The width of the prediction interval depends on the confidence level
set by setConLevelPred(double)
.
double
[2] array containing the Prediction
Interval of the predicted response at the given observationpublic double getResidual()
double
containing the residual for an
observationpublic double getStandardizedResidual()
double
containing the Standardized Residual
for an observationpublic void setConLevelMean(double conpcm)
conpcm
- a double
used to set the confidence level
for two-sided confidence intervals of the population mean. Note that
conpcm
must be in the interval 0
to
1
inclusive. That is, it must be expressed as a
probability.
Default: conpcm
=.95.
public void setConLevelPred(double conpcp)
conpcp
- a double
used to set the confidence level
for two-sided prediction intervals of a predicted response.
Note that conpcp
must be in
the interval 0
to 1
inclusive. That is, it
must be expressed as a probability.
Default: conpcp
=.95.
Copyright © 1970-2015 Rogue Wave Software
Built October 13 2015.