Here you can download some software that I have written. Some of the files may be compressed in a .7z archive. Please let me know if there are any problems, and say thank you if you find them useful. Unless stated otherwise, all code here is released under the GNU General Public License version 3 (GPLv3).


MATWRITE is a Stata plugin that allows the user to export data to the MATLAB .mat file format from within Stata. MATWRITE allows you to export all (or selected) variables as column vectors, and all (or selected) matrices as matrices. Furthermore, the user is able to specify groups of variables to export as matrices. Further details are provided in the help file. MATWRITE requires Stata 10.1 or above and can be installed within web-aware Stata by typing "ssc install matwrite". The compiled plugin is provided for Windows (32/64-bit). The file can be compiled from source for other platforms (see here for details). Version 0.94.

[stata .ado and .plugin files] [c++ source code]


STATAMOD is a Fortran module that provides read/write support for Stata data sets (up to version 11) from within Fortran. It requires the Intel Fortran Portability Library (or similiar). Version 0.20.3.

[fortran source code]