Random nacopula Model
Randomly construct a nested Archimedean copula model,
rnacModel(family, d, pr.comp, rtau0 = function() rbeta(1, 2,4), order=c("random", "each", "seq"), digits.theta = 2)
family |
the Archimedean family |
d |
integer >=2; the dimension |
pr.comp |
probability of a direct component on each level |
rtau0 |
a |
order |
string indicating how the component IDs are selected. |
digits.theta |
integer specifying the number of digits to round the theta values. |
an object of outer_nacopula
.
## Implicitly tests the function {with validity of outer_nacopula ..} set.seed(11) for(i in 1:40) { m1 <- rnacModel("Gumbel", d=sample(20:25, 1), pr.comp = 0.3, rtau0 = function() 0.25) m2 <- rnacModel("Joe", d=3, pr.comp = 0.1, order="each") mC <- rnacModel("Clayton", d=20, pr.comp = 0.3, rtau0 = function() runif(1, 0.1, 0.5)) mF <- rnacModel("Frank", d=sample(20:25, 1), pr.comp = 0.3, order="seq") }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.