|
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.Forward
public class Forward
To construct a GLM model for a set of observations using the forward selection method, we iteratively add a significant factor to the model, one at a time. This repeats until all remaining factors are insignificant.
| 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 | |
|---|---|
Forward(GlmProblem problem,
double significance)
Construct automatically a GLM model using the forward 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 Forward(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 | |||||||