com.numericalmethod.suanshu.stats.regression.linear.glm
Class GlmProblem
java.lang.Object
com.numericalmethod.suanshu.stats.regression.linear.LmProblem
com.numericalmethod.suanshu.stats.regression.linear.glm.GlmProblem
- Direct Known Subclasses:
- QuasiGlmProblem
public class GlmProblem
- extends LmProblem
This class represents a Generalized Linear regression problem.
|
Field Summary |
Family |
family
the exponential family distribution for the mean |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
family
public final Family family
- the exponential family distribution for the mean
GlmProblem
public GlmProblem(Vector y,
Matrix X,
boolean addIntercept,
Family family)
- Construct a GLM problem.
- Parameters:
y - the dependent variablesX - the factorsaddIntercept - true iff to add an intercept term to the linear regressionfamily - the exponential family distribution for the mean
GlmProblem
public GlmProblem(LmProblem problem,
Family family)
- Construct a GLM problem from a linear regression problem.
- Parameters:
problem - a linear regression problemfamily - the exponential family distribution for the mean
Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.