current version: Mar 19, 2005

(

The commands

To download the according .ado files, you can use the command

. net from http://econ.ucsd.edu/muendler/download/stata/

in Stata.

Alternatively, you can download the zip file.

. matsave A, p("matrices") dropall

This saves matrix

matsave uses the Stata command

. matsave A

no; data in memory would be lost

r(4);

matsave can remove and restore the data for you. Under the option

. matsave A, replace p("matrices") saving

The option saving is different from

The option saving can be time consuming, however, if your dataset in memory is large. Dropping all variables can be more efficient when many matrices are saved or loaded.

. preserve

. matsave A, replace p("matrices") dropall

. matsave B, replace p("matrices") dropall

. restore

If the path "

. matsave A, replace p("matrices") dropall

error (after svmat was applied)

file could not be opened

r(603);

. matload A, p("matrices") saving over

loads the saved matrix

Under the option

. matload A, p("matrices")

no; matrix A would be lost

r(4);

To assign column and row names to

The name of

. matload A, p("matrices") s over

Last modified: March 19, 2005.© February 2000 and July 2002. All rights reserved. Marc-Andreas Muendler |