SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.regression.linear.glm
Class GlmProblem

java.lang.Object
  extended by com.numericalmethod.suanshu.stats.regression.linear.LmProblem
      extended by 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
 
Fields inherited from class com.numericalmethod.suanshu.stats.regression.linear.LmProblem
A, addIntercept, wA, weights, wy, y
 
Constructor Summary
GlmProblem(LmProblem problem, Family family)
          Construct a GLM problem from a linear regression problem.
GlmProblem(Vector y, Matrix X, boolean addIntercept, Family family)
          Construct a GLM problem.
 
Method Summary
 
Methods inherited from class com.numericalmethod.suanshu.stats.regression.linear.LmProblem
checkInputs, invOfwAtwA, nExogenousFactors, nFactors, nObs, X
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

family

public final Family family
the exponential family distribution for the mean

Constructor Detail

GlmProblem

public GlmProblem(Vector y,
                  Matrix X,
                  boolean addIntercept,
                  Family family)
Construct a GLM problem.

Parameters:
y - the dependent variables
X - the factors
addIntercept - true iff to add an intercept term to the linear regression
family - 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 problem
family - the exponential family distribution for the mean

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.