quality_ratio: Compute the logit of the ratio of qualities

View source: R/mcmc_functions.R

quality_ratioR Documentation

Compute the logit of the ratio of qualities

Description

This function computes the probability i beats j on the logit scale. It is given by logit(pi_ij) = lambda_i - log(exp(lambda_i) + exp(lambda_j))

Usage

quality_ratio(x, y)

Arguments

x

The level of deprivation of the winning object on the exponential scale

y

The level of deprivation of the losing object on the exponential scale

Value

logit(pi_ij)

Examples


#compare areas with levels -2 and 2

qr <- quality_ratio(exp(-2), exp(2))


BSBT documentation built on Aug. 9, 2022, 5:06 p.m.