dDistr: dDistr

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Calculate density for transform of normal distribution.

Usage

1
dDistr(x, mu, sigma, trans)

Arguments

x

numeric vector of quantile at original scale for to calculate density

mu

numeric vector (recycled)

sigma

numeric vector (recycled)

trans

factor vector: the Transformation to use levels (norm,lognorm,logitnorm)

Details

To evaluate density at original, i.e. lognormal, logitnormal, scale the density at transformed normal scale has to be multiplied with the Jacobian, i.e the derivative of the transformation

Value

numeric vector of length of maximum length of the arguments

Author(s)

Thomas Wutzler

See Also

transOrigPopt.default twDEMCBlockInt

Examples

1
2
3
4
5
x <- seq(0.01,3,by=0.05)
mu=0
sigma=1
dx <- dDistr(x,mu,sigma,trans="lognorm")
plot( dx ~ x)

twDEMC documentation built on May 2, 2019, 5:38 p.m.