Rev Language Reference


tnLogit - Logit-transformed distribution

Logit-transforms a given distribution.

Usage

tnLogit(Distribution__Probability baseDistribution)

Arguments

baseDistribution : Distribution__Probability (pass by const reference)
The distribution to be transformed.

Domain Type

Details

If P ~ dist then tnLogit(dist) is the distribution of log(P/(1-P)). The distribution `dist` can be either univariate (dnBeta) or multivariate (dnDirichlet).

Example

x ~ tnLogit(dnBeta(1,2))         # The log-odds of an Beta random variable.
x ~ dnBeta(1,2)|> tnLogit()      # Expressed using pipes.

p ~ dnBeta(1,2)
x := logit(p)                    # Expressed as a deterministic function of the probability.

xs ~ dnDirichlet([1,1,1,1]) |> tnLogit()

See Also