I want to impose a Gumbel (or Gaussian) copula on two independent random variables
library(tidyverse); set.seed(1); n <- 1e3
data <- tibble(x = rbeta(n, 1, 2), y = rbeta(n, 1, 3))
plot(data$x, data$y)
Here is the uncorrelated plot:
I would like impose a copula to reorder the deviates such that I get the following:
Gaussian
I have looked through the copula, MASS and VineCopula packages but it is unclear how this can be achieved. Thank you very much!