lambda.vec <- c(0.1, 0.13)
theta.vec <- c(7, 40)
M<- c(0.3, 0.3)
N <- diag(2)
N[lower.tri(N)] <- M
cmat<- N + t(N)
diag(cmat) <- 1
# In real-data simulation, no.rows is often set to 100000 in this intermediate step
# for more accurate calibration.
binObj <- simBinaryCorr.GPD(
GPD.theta.vec = theta.vec,
GPD.lambda.vec = lambda.vec,
CorrMat = cmat,
no.rows = 20000,
steps = 0.025)
Run the code above in your browser using DataLab