estimateDiffLognormal: Inference on the difference of two lognormals

Description Usage Arguments Value Functions

View source: R/lognormalDiff.R

Description

The distribution of y = a - b + s, where a and b are two lognormal random variables and s is a constant to be estimated, can be approximated by a lognormal distribution.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
estimateDiffLognormal(mu_a, mu_b, sigma_a, sigma_b, corr = 0)

pDiffLognormalSample(
  mu_a,
  mu_b,
  sigma_a,
  sigma_b,
  corr = 0,
  q = 0,
  nSample = 1e+05
)

Arguments

mu_a

center parameter of the first term

mu_b

center parameter of the second term

sigma_a

scale parameter of the first term

sigma_b

scale parameter of the second term

corr

correlation between the two random variables

q

vector of quantiles

nSample

number of samples

Value

estimateDiffLognormal: numeric vector with components mu, sigma, and shift, the components of the shifted lognormal distribution.

pDiffLognormalSample: vector of probabilities

Functions


bgctw/lognorm documentation built on March 17, 2021, 3:21 a.m.