# NOT RUN {
R <- rlkjcorr(n=1,K=2,eta=4)
dlkjcorr(R,4)
# plot density of correlation
R <- rlkjcorr(1e4,K=2,eta=4)
dens( R[,1,2] )
# visualize 3x3 matrix
R <- rlkjcorr(1e3,K=3,eta=2)
plot( R[,1,2] , R[,1,3] , col=col.alpha("black",0.2) , pch=16 )
# }
Run the code above in your browser using DataLab