public abstract class Family extends java.lang.Object implements ExponentialDistribution
The R equivalent function is family.
| Constructor and Description |
|---|
Family(LinkFunction link)
Construct an instance of Family.
|
| Modifier and Type | Method and Description |
|---|---|
double |
deviance(double y,
double mu)
Deviance D(y;μ^) measures the goodness-of-fit of a model, which is defined as
the difference between the maximum log likelihood achievable and that achieved by the model.
|
LinkFunction |
link()
Get the link function of this distribution.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitAIC, cumulant, dispersion, overdispersion, theta, variancepublic Family(LinkFunction link)
link - the link function of this distributionpublic LinkFunction link()
public double deviance(double y,
double mu)
D(y;μ^) = 2 * [l(y;y) - l(μ^;y)]where l is the log-likelihood.
For an exponential family distribution, this is equivalent to
2 * [(y * θ(y) - b(θ(y))) - (y * θ(μ^) - b(θ(μ^)]where b() is the cumulant function of the distribution.
The definition above is the default implementation of this function, a
subclass of ExponentialDistribution may override this
function to implement a simplified expression for efficiency or handle
special values.
deviance in interface ExponentialDistributiony - the observed valuemu - the estimated mean, μ^