Hi everyone,
I'm having an issue when forming the variance-covariance matrix from a vector with the standard deviations and a correlation matrix. The attached picture shows the work and results. S holds the standard deviations for seven random parameters. R is the correlation matrix which is definitely symmetric but, although the variance-covariance matrix looks symmetric it is not. This looks as an issue of precision, and I was wondering if there was a way in mata to get it right.
Thanks,
Alfonso.
I'm having an issue when forming the variance-covariance matrix from a vector with the standard deviations and a correlation matrix. The attached picture shows the work and results. S holds the standard deviations for seven random parameters. R is the correlation matrix which is definitely symmetric but, although the variance-covariance matrix looks symmetric it is not. This looks as an issue of precision, and I was wondering if there was a way in mata to get it right.
Thanks,
Alfonso.
Comment