Simulate observations from a lognormal distribution #' A wrapper function around `rlnorm` that generates a single random observation from a lognormal distribution centered on a predicted value (`pred`) and given a level of error (`cv`).

simulate_lognormal_obs(pred, cv, n = 1)

Arguments

pred

the predicted value of an observation

cv

the real-space coefficient of variation about the predicted observation value

Examples

if (FALSE) { # \dontrun{
simulate_lognormal_obs(10, 0.20)
} # }