# NOT RUN {
# Gumbel-Hougaard copula with Pearson rhoN = 0.4 (by definition)
run <- sapply(1:20, function(i) semicorCOP(cop=GHcop, para=1.350, n=600))
mean(unlist(run[1,])) # cor.normal.scores
mean(unlist(run[2,])) # minus.semicor
mean(unlist(run[3,])) # plus.semicor
sd( unlist(run[1,])) # cor.normal.scores (These are our sampling variations
sd( unlist(run[2,])) # minus.semicor for the n=600 used as a Monte
sd( unlist(run[3,])) # plus.semicor Carlo simulation.)
# The function returns: rhoN = 0.3945714, rhoN-= 0.1312561, rhoN+= 0.4108908
# standard deviations (0.0378331) (0.0744049) (0.0684766)
# Joe (2014, p. 72) shows: rhoN = 0.4, rhoN-= 0.132, rhoN+= 0.415
# standard deviations (not avail) (0.08) (0.07)
# We see alignment with Joe's results with his n=600. #
# }
Run the code above in your browser using DataLab