Learn R Programming

lcopula (version 1.0.7)

rarchi: Archimedean copula sampler

Description

Sampler based on the Marshall-Olkin algorithm

Usage

rarchi(n, family, d, theta)

Value

a sample of dimension n by d from the Archimedean copula

Arguments

n

sample size

family

family of the Archimedean copula. Either "clayton", "gumbel", "frank", "AMH" or "joe"

d

dimension of sample

theta

parameter of the Archimedean copula

Examples

Run this code
#Sample from a Gumbel Archimedean copula
rarchi(n = 100, "gumbel", d = 4, theta = 2)
#Sample from the independence copula
rarchi(n = 100, "gumbel", d = 4, theta = 1)

Run the code above in your browser using DataLab