|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Fitting
This interface represents a fitting method for estimating β in a Generalized Linear Model (GLM).
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.
| Method Summary | |
|---|---|
ImmutableVector |
betaHat()
Get the estimates of β, β^, as in
E(Y) = μ = g-1(Xβ)
|
void |
fit(GlmProblem problem,
Vector beta0Initial)
Fit a Generalized Linear Model. |
double |
logLikelihood()
|
ImmutableVector |
mu()
Get μ as in
E(Y) = μ = g-1(Xβ)
|
ImmutableVector |
weights()
Get the weights to the observations. |
| Method Detail |
|---|
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()
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||