Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rFFrankJoe

Sampling Distribution F for Frank and Joe


Description

Generate a vector of variates V ~ F from the distribution function F with Laplace-Stieltjes transform

(1-(1-exp(-t)*(1-e^(-theta1)))^alpha)/(1-e^(-theta0)),

for Frank, or

1-(1-exp(-t))^alpha

for Joe, respectively, where theta0 and theta1 denote two parameters of Frank (that is, theta0,theta1 in (0,Inf)) and Joe (that is, theta0,theta1 in [1,Inf)) satisfying theta0 <= theta1 and alpha=theta0/theta1.

Usage

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

Arguments

n

number of variates from F.

theta0

parameter theta0.

theta1

parameter theta1.

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 alpha = theta0/theta1 in (0,1] for rFJoe.

Details

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

Value

numeric vector of random variates V of length n.

See Also

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

Examples

## Simple definition of the functions:
rFFrank
rFJoe

copula

Multivariate Dependence with Copulas

v1.0-1
GPL (>= 3) | file LICENCE
Authors
Marius Hofert [aut] (<https://orcid.org/0000-0001-8009-4665>), Ivan Kojadinovic [aut] (<https://orcid.org/0000-0002-2903-1543>), Martin Maechler [aut, cre] (<https://orcid.org/0000-0002-8685-9910>), Jun Yan [aut] (<https://orcid.org/0000-0003-4401-7296>), Johanna G. Nešlehová [ctb] (evTestK(), <https://orcid.org/0000-0001-9634-4796>), Rebecca Morger [ctb] (fitCopula.ml(): code for free mixCopula weight parameters)
Initial release
2020-12-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.