draw_lognormal: Draw samples from a lognormal distribution.

Description Usage Arguments Details Value

View source: R/make_samples.R

Description

Draw samples from a lognormal distribution.

Usage

1

Arguments

n

A vector of integer(-ish) values.

mu

A vector of means.

sd

A vector of standard deviations.

Details

N.B., unlike the original R function rlnorm, this function parametrises a lognormally distributed variable X by its mean and standard deviation, rather than the mean and standard deviation of log(X).

Value

A function that generates a list of length n containing samples drawn from the desired lognormal distributions.


colinorourke/simpower documentation built on May 21, 2019, 1:42 a.m.