Home  /  Resources & support  /  FAQs  /  Saving matrices
Note: This FAQ applies to older versions of Stata; in particular, Stata 4.0 and earlier. It does not apply to the current version.

How can I save matrices?

Title   Saving matrices
Author Stata technical support

Stata does not save matrices with the dataset. You can save a matrix if you first convert it to a dataset using svmat. To reload the matrix, you can use the dataset and then use the mkmat command. See the STB article, Storing matrices as variables in STB-23 (ip6.2, reprinted in STB Reprints, vol. 4). The svmat is not part of Stata, so you will need to obtain the ado-files that accompanied the article in order to save your matrices.

You can download STB-23 from the anonymous ftp site.