dviGLR {dvir} | R Documentation |
Based on a dviData
object, or output from dviJoint()``or
jointDVI()',
the GLR, the ratio of the maximum likelihood under H0 to the maximum under H1,
is calculated for specified hypotheses.
dviGLR(dvi, pairings = generatePairings(dvi), dviRes = NULL)
dvi |
A |
pairings |
List. See details. |
dviRes |
data frame. Output from |
The Generalised Likelihood Ratio (GLR) statistic is defined as the
ratio of the maximum likelihood for the alternatives in the numerator
to the maximum in the denominator. The default
pairings = dvir::generatePairings(dvi)
tests all hypotheses. Specific
tests can be specified as shown in an example:
pairings = list(V1 = "M1")
gives a test for H0: V1 = M1 against
H1: V1 != M1. dviRes
will be calculated using jointDVI()
if not provided.
A data frame with GLRs and SGLR (strict GLR, max replaced by min in the numerator).
# dviGLR(example2, pairings = list(V1 = "M1"))
# All tests with output from jointDVI
# dviGLR(example2)