search for: rcorrmatrix

Displaying 2 results from an estimated 2 matches for "rcorrmatrix".

2012 Jul 18
4
The best solver for non-smooth functions?
...00, 1.06, 0.01, 0.11, 0.24, 0.43, 6.48, 83.46, 4.07, 5.20, 0.21, 0, 0.22, 1.30, 2.38, 11.24, 64.86, 19.79, 0, 0, 0, 0, 0, 0, 0, 100 )/100, 8, 8, dimnames = list(rc, rc), byrow = TRUE) # Correlation matrix rho <- rcorrmatrix(N) ; dimnames(rho) = list(firmnames, firmnames) # Credit Value at Risk cm.CVaR(M, lgd, ead, N, n, r, rho, alpha, rating) # Risk neutral yield rates Y <- cm.cs(M, lgd) y <- c(Y[match(rating[1],rc)], Y[match(rating[2],rc)], Y[match(rating[3],rc)]) ; y # The function to be minimized sharpe...
2011 Jun 02
4
generating random covariance matrices (with a uniform distribution of correlations)
...different k's > y1<-cov2cor(y1) > x[i,]<- y1[lower.tri(y1)] > } > hist(c(x)) demonstrates that the distribution of corresponding correlations is not uniformly distributed between -1 and 1 (of course there is no reason to suspect that it would be). I have tried using both rcorrmatrix and genPositiveDefMat in the "clusterGeneration" package but even when picking the "unifcorrmat" option and setting "alphad" to 1, the distribution of correlations is not uniform. Any recommendations on how to generate the desired covariance matrices would be apprecia...