public interface Fitting
extends java.io.Serializable
John Nelder and Robert Wedderburn proposed an iteratively re-weighted least squares method for maximum likelihood estimation of the model parameters, β. Maximum-likelihood estimation remains popular and is the default method on many statistical computing packages. Other approaches, including Bayesian approaches and least squares fits to variance stabilized responses, have been developed.
| Modifier and Type | Method and Description |
|---|---|
ImmutableVector |
betaHat()
Get the estimates of β, β^, as in
|
void |
fit(GLMProblem problem,
Vector beta0Initial)
Fit a Generalized Linear Model.
|
double |
logLikelihood() |
ImmutableVector |
mu()
Get μ as in
|
ImmutableVector |
weights()
Get the weights to the observations.
|
void fit(GLMProblem problem, Vector beta0Initial)
This method must be called before the three get methods.
problem - the generalized linear regression problem to be solvedbeta0Initial - initial guess for betaHatImmutableVector mu()
E(Y) = μ = g-1(Xβ)
ImmutableVector betaHat()
E(Y) = μ = g-1(Xβ)
ImmutableVector weights()
double logLikelihood()