law0038.AsymmetricPowerDistribution: The Asymmetric Power Distribution

Description Details Author(s) References See Also Examples

Description

Random generation for the Asymmetric Power Distribution with parameters theta, phi, alpha and lambda.

This generator is called by function gensample to create random variables based on its parameters.

Details

If theta, phi, alpha and lambda are not specified they assume the default values of 0, 1, 0.5 and 2, respectively.

The Asymmetric Power Distribution with parameters theta, phi, alpha and lambda has density:

f(u) = (1/φ)*(δ^{1/λ}_{α,λ})/(Γ(1+1/λ))*\exp[-(δ_{α,λ})/(α^{λ})*|(u-θ)/φ|^{λ}]

if

u <= 0

and

f(u) = (1/φ)*(δ^{1/λ}_{α,λ})/(Γ(1+1/λ))*\exp[-(δ_{α,λ})/(1-α)^{λ}*|(u-θ)/φ|^{λ}]

if

u > 0,

where 0<α<1, λ>0 and δ_{α,λ}=(2*α^{λ}(1-α)^{λ})/(α^{λ}+(1-α)^{λ}).

The mean and variance of APD are defined respectively by

E(U) = θ+φ*Γ(2/λ)/Γ(1/λ) * [1-2*α]*δ_{α,λ}^{-1/λ}

and

V(U) =φ^2 * (Γ(3/λ)*Γ(1/λ)*[1-3α+3α^2]-Γ(2/λ)^2*[1-2*α]^2)/(Γ(1/λ))^2 * δ_{α,λ}^{-2/λ}.

Author(s)

P. Lafaye de Micheaux, V. A. Tran

References

Pierre Lafaye de Micheaux, Viet Anh Tran (2016). PoweR: A Reproducible Research Tool to Ease Monte Carlo Power Simulation Studies for Goodness-of-fit Tests in R. Journal of Statistical Software, 69(3), 1–42. doi:10.18637/jss.v069.i03

Komunjer, I. (2007), Asymmetric Power Distribution: Theory and Applications to Risk Measurement, Journal of Applied Econometrics, 22, 891–921.

See Also

See Distributions for other standard distributions.

Examples

1
2
3
4
5
res <- gensample(38,10000,law.pars=c(3,2,0.5,1))
res$law
res$law.pars
mean(res$sample)
sd(res$sample)

PoweR documentation built on May 2, 2019, 2:09 p.m.