Skip to contents

Posterior odds as a running product of ratios (eq. 3.31, p. 63)

Usage

morie_lrprod(num, den)

Arguments

num, den

per-observation probabilities under the two hypotheses

Value

list(ratio, p1, logratio, n)

Examples

V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_lrprod(V, V)
#> $ratio
#> [1] 1
#> 
#> $p1
#> [1] 0.5
#> 
#> $logratio
#> [1] 0
#> 
#> $n
#> [1] 8
#>