Displaying 1 result from an estimated 1 matches for "genpositivedefmat".
2011 Jun 02
4
generating random covariance matrices (with a uniform distribution of correlations)
...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 appreciated.
Ned
--
Ned A. D...