Skip to contents

This function accepts both log-scale and unit-scale parameters to specify a discretized lognormal distribution.

Usage

get_discrete_lognormal(
  meanlog,
  sdlog,
  unit_mean = NULL,
  unit_sd = NULL,
  maxX,
  include_zero = TRUE,
  print_params = FALSE
)

Arguments

meanlog

Log scale mean (location of lognormal).

sdlog

Log scale standard deviation (scale of lognormal).

unit_mean

Alternative parameterization: unit/natural scale mean.

unit_sd

Alternative parameterization: unit/natural scale sd.

maxX

Right truncation point. All probability mass beyond maxX will be assigned to maxX.

include_zero

Should the distribution explicitly cover X=0, or should X=1 include the probability mass for X=0 too?

print_params

Should the log-level parameters be printed?

Value

A numeric vector representing the PMF of the discretized lognormal.