|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.regression.linear.modelselection.Backward
public class Backward
To construct a GLM model for a set of observations using the backward selection method, we first assume that all factors are included in the model. Iteratively, we drop the least significant factor until all remaining factors are significant.
| Nested Class Summary | |
|---|---|
static class |
SingleFactorSelection.ModelNotFound
We throw a ModelNotFound exception when we fail to construct a model to explain the data. |
| Field Summary | |
|---|---|
double |
criticalValue
a critical value A factor is considered significant if its z-value is bigger than some critical value. |
GlmProblem |
problem
the GLM problem to be solved |
| Constructor Summary | |
|---|---|
Backward(GlmProblem problem,
double significance)
Construct automatically a GLM model using the backward selection method. |
|
| Method Summary | |
|---|---|
GeneralizedLinearModel |
model()
Get the constructed model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final GlmProblem problem
public final double criticalValue
A factor is considered significant if its z-value is bigger than some critical value. We add the significant factors to the model.
| Constructor Detail |
|---|
public Backward(GlmProblem problem,
double significance)
problem - a GLM problemsignificance - a critical value to determine whether a factor is significant (to be included in the model)| Method Detail |
|---|
public GeneralizedLinearModel model()
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||