TL; DR
This document states the parametrization used for the positive density functions used in the package.
Log-normal
Let be a random variable following a Log-normal distribution with parameters and . We denote . The density function associated with such a variable is The expected value (theoretical mean) of such a variable is while the variance is:
Since we are usually interested in parametrization regression models through the mean of a distribution, we work with an alternative parametrization of this distribution. In particular, to parametrize the distribution in terms of the mean (denoted ) on the original scale. The simplest way to achieve this is as follows by solving the following system of equations for and which yields
Alternatively, one may set Which yields:
For simplicity, we work with the first option, which yields the following density:
Gamma
Similarly, let~, with density given by: while its mean and variance are and respectively.
Using a similar strategy as before, we get a parametrization in terms of the mean as follows: Solving for and gives: which yields the following density (parametrized in terms of the mean)