Learn Data & AI Skills | 50% off
Get 50% off unlimited learning

copula (version 0.999-18)

rFFrankJoe: Sampling Distribution F for Frank and Joe

Description

Generate a vector of variates VF from the distribution function F with Laplace-Stieltjes transform (1(1exp(t)(1eθ1))α)/(1eθ0), for Frank, or 1(1exp(t))α, for Joe, respectively, where θ0 and θ1 denote two parameters of Frank (that is, θ0,θ1(0,)) and Joe (that is, θ0,θ1[1,)) satisfying θ0θ1 and α=θ0/θ1.

Usage

rFFrank(n, theta0, theta1, rej)
rFJoe(n, alpha)

Arguments

n

number of variates from F.

theta0

parameter θ0.

theta1

parameter θ1.

rej

method switch for rFFrank: if theta0 > rej a rejection from Joe's family (Sibuya distribution) is applied (otherwise, a logarithmic envelope is used).

alpha

parameter α=θ0/θ1 in (0,1] for rFJoe.

Value

numeric vector of random variates V of length n.

Details

rFFrank(n, theta0, theta1, rej) calls rF01Frank(rep(1,n), theta0, theta1, rej, 1) and rFJoe(n, alpha) calls rSibuya(n, alpha).

See Also

rF01Frank, rF01Joe, also for references. rSibuya, and rnacopula.

Examples

Run this code
# NOT RUN {
## Simple definition of the functions:
rFFrank
rFJoe
# }

Run the code above in your browser using DataLab