########################################
##Syntetic covariance matrix IIIR_1 from
##Daniels, M.J. and R.E. Kass (1999)
##JASA 94(448):1254-1263.
########################################
p <- 5
theta <- rep(pi/4, p*(p-1)/2)
lambda <- c(1, 0.75, 0.56, 0.06, 0.003)
cov <- covGivens(theta, lambda, p)$C
cov2cor(cov)
Run the code above in your browser using DataLab