Dear all,
I have a (probably simple) question regarding exporting a matrix from Mata to Stata.
I am using Mata to perform a set of estimations, after which I store my resulting coefficients of interest in the matrix "results". Each entry of this matrix in Mata entails a large number of decimal digits: when displaying it in Mata, the output entails numbers with 9 decimal digits. Now, my aim is to export this results matrix to Stata. I tried the most common solution of using st_matrix(); however, the resulting Stata matrix gets rounded to the 7th decimal digit (this happens both when displaying in Stata, and when using its entries to perform other tasks). Is there a way of performing this export preserving the entire (i.e., not rounded) entries of the original Mata matrix?
Thanks so much and best regards
Pier Giuseppe
I have a (probably simple) question regarding exporting a matrix from Mata to Stata.
I am using Mata to perform a set of estimations, after which I store my resulting coefficients of interest in the matrix "results". Each entry of this matrix in Mata entails a large number of decimal digits: when displaying it in Mata, the output entails numbers with 9 decimal digits. Now, my aim is to export this results matrix to Stata. I tried the most common solution of using st_matrix(); however, the resulting Stata matrix gets rounded to the 7th decimal digit (this happens both when displaying in Stata, and when using its entries to perform other tasks). Is there a way of performing this export preserving the entire (i.e., not rounded) entries of the original Mata matrix?
Thanks so much and best regards
Pier Giuseppe
Comment