public class QuasiGLMNewtonRaphson extends Object implements GLMFitting
| Constructor and Description |
|---|
QuasiGLMNewtonRaphson(double epsilon,
int maxIterations)
Constructs an instance to run the Newton-Raphson method.
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableVector |
betaHat()
Gets the estimates of β, β^, as in
\[
E(Y) = \mu = g^{-1}(X\beta )
\]
|
ImmutableMatrix |
D()
Computes D.
\[
D = d(\mu )/d(\beta ) = (d\mu /d\eta ) \cdot (d\eta /d\beta )
\]
|
ImmutableMatrix |
DVInv()
Computes D / V(μ).
|
void |
fit(GLMProblem problem,
Vector beta0Initial)
Fits a Generalized Linear Model.
|
double |
logLikelihood() |
ImmutableVector |
mu()
Gets μ as in
\[
E(Y) = \mu = g^{-1}(X\beta )
\]
|
ImmutableVector |
weights()
Gets the weights assigned to the observations.
|
public QuasiGLMNewtonRaphson(double epsilon,
int maxIterations)
epsilon - a precision parameter: when a number |x| ≤ ε, it is
considered 0maxIterations - the maximum number of iterationspublic void fit(GLMProblem problem, Vector beta0Initial)
GLMFittingfit in interface GLMFittingproblem - the generalized linear regression problem to be
solvedbeta0Initial - initial guess for \(\hat{\beta}\)public ImmutableVector mu()
GLMFittingmu in interface GLMFittingpublic ImmutableVector betaHat()
GLMFittingbetaHat in interface GLMFittingpublic double logLikelihood()
logLikelihood in interface GLMFittingpublic ImmutableVector weights()
GLMFittingweights in interface GLMFittingpublic ImmutableMatrix D()
public ImmutableMatrix DVInv()
Copyright © 2010-2026 NM Group. All Rights Reserved.