Learn R Programming

Renext (version 3.1-4)

LRExp: Likelihood Ratio statistic for exponential vs. GPD

Description

Likelihood Ratio statistic for the exponential distribution vs. GPD.

Usage

LRExp(x, alternative = c("lomax", "GPD", "gpd", "maxlo"))

Value

The LR statistic value.

Arguments

x

Numeric vector of positive sample values. For the POT context, this should be the vector of excesses over the threshold.

alternative

Character string describing the alternative hypothesis

Details

The Likelihood-Ratio statistic is actually \(W:=-2 \log \textrm{LR}\) where LR is the ratio of the likelihoods exponential to alternative distribution.

See Also

LRExp.test for the related LR test of exponentiality.