public class Forward
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
com.numericalmethod.suanshu.stats.regression.linear.modelselection.SingleFactorSelection.ModelNotFound
We throw a ModelNotFound exception when we fail to construct a getModel to explain the data.
|
| Modifier and Type | Field and Description |
|---|---|
double |
criticalValue
a critical value
|
GLMProblem |
problem
the GLM problem to be solved
|
| Constructor and Description |
|---|
Forward(GLMProblem problem,
double significance)
Construct automatically a GLM getModel using the forward selection method.
|
| Modifier and Type | Method and Description |
|---|---|
GeneralizedLinearModel |
getModel()
Get the constructed getModel.
|
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 getFactors to the getModel.
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 getModel)public GeneralizedLinearModel getModel()