Skip to contents

Construct a lognormal prior object to replace an entry of a kb_priors_*() list passed to the priors argument of the kb_fit_*() functions. Used for positive parameters whose plausible values span orders of magnitude.

Usage

kb_prior_lognormal(meanlog = 0, sdlog = 1)

Arguments

meanlog

A number giving the mean of the log of the parameter.

sdlog

A positive number giving the standard deviation of the log of the parameter.

Value

A kb_prior_lognormal object.

Details

meanlog and sdlog are on the log scale: a lognormal prior with meanlog and sdlog is a Normal prior with that mean and standard deviation on the log of the parameter, so its median is exp(meanlog).

Examples

kb_prior_lognormal(meanlog = 2, sdlog = 1)
#> lognormal(meanlog = 2, sdlog = 1)