---
title: Archimedean Liouville Copulas
author: Marius Hofert
date: '`r Sys.Date()`'
vignette: >
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteIndexEntry{Archimedean Liouville Copulas}
---
```{r, message=FALSE}
require(copula)
source(system.file("Rsource", "AC-Liouville.R", package="copula"))
set.seed(271)
```

## Archimedean-Simplex copulas

```{r}
n <- 1000
theta <- 0.59
d <- 3
U <- rACsimplex(n, d=d, theta=theta, Rdist="Gamma")
cor(U, method="kendall")
```

```{r, fig.width=6, fig.height=6}
par(pty="s")
pairs(U, gap=0, cex=0.5)
```


## Liouville copulas

See McNeil, Neslehova (2010, Figure 3)

```{r}
n <- 2000
theta <- 0.6
alpha <- c(1, 5, 20)
U <- rLiouville(n, alpha=alpha, theta=theta, Rdist="Gamma")
cor(U, method="kendall")
```

```{r, fig.width=6, fig.height=6}
par(pty="s")
pairs(U, gap=0, cex=0.5)
```


## Archimedean-Liouville copulas

See McNeil, Neslehova (2010, Figure 4)

```{r}
n <- 1000
theta <- 0.59
alpha <- c(1, 3, 4)
U <- rACLiouville(n, alpha=alpha, theta=theta, family="Clayton")
cor(U, method="kendall")
```

```{r, fig.width=6, fig.height=6}
par(pty="s")
pairs(U, gap=0, cex=0.5)
```

