Class ForwardSelection
- java.lang.Object
-
- dev.nm.stat.regression.linear.glm.modelselection.GLMModelSelection
-
- dev.nm.stat.regression.linear.glm.modelselection.ForwardSelection
-
public class ForwardSelection extends GLMModelSelection
Constructs a GLM model for a set of observations using the forward selection method. Starting from a null model, one factor is added at a time based on the selection criteria.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ForwardSelection.Step
-
Nested classes/interfaces inherited from class dev.nm.stat.regression.linear.glm.modelselection.GLMModelSelection
GLMModelSelection.ModelNotFound
-
-
Constructor Summary
Constructors Constructor Description ForwardSelection(GLMProblem problem)
Constructs a GLM model using the forward selection method, with SelectionByAIC as the default algorithm.ForwardSelection(GLMProblem problem, ForwardSelection.Step step)
Constructs a GLM model using the forward selection method.
-
Method Summary
-
Methods inherited from class dev.nm.stat.regression.linear.glm.modelselection.GLMModelSelection
addFactor, dropFactor, getFlags, getModel, isSelected, problem, subA
-
-
-
-
Constructor Detail
-
ForwardSelection
public ForwardSelection(GLMProblem problem)
Constructs a GLM model using the forward selection method, with SelectionByAIC as the default algorithm.- Parameters:
problem
- the GLM problem
-
ForwardSelection
public ForwardSelection(GLMProblem problem, ForwardSelection.Step step)
Constructs a GLM model using the forward selection method.- Parameters:
problem
- the GLM problemstep
- the algorithm determining which factor to add in each step
-
-