Class GLMProblem

  • Direct Known Subclasses:
    QuasiGLMProblem

    public class GLMProblem
    extends LMProblem
    This is a Generalized Linear regression problem.
    • Constructor Detail

      • GLMProblem

        public GLMProblem​(Vector y,
                          Matrix X,
                          boolean intercept,
                          GLMFamily family)
        Construct a GLM problem.
        Parameters:
        y - the dependent variables
        X - the factors
        intercept - true if to add an additional intercept term to the linear regression
        family - the exponential family distribution of the mean
      • GLMProblem

        public GLMProblem​(LMProblem problem,
                          GLMFamily family)
        Construct a GLM problem from a linear regression problem.
        Parameters:
        problem - a linear regression problem
        family - the exponential family distribution of the mean
    • Method Detail

      • getFamily

        public GLMFamily getFamily()
        Get the exponential family distribution of the mean.
        Returns:
        the exponential family distribution of the mean