help spmat save


spmat save -- Save an spmat object in memory to disk in Stata's native format


spmat save objname using filename [, replace]


spmat save saves the spmat object objname in memory to disk in Stata's native format. replace requests that filename be overwritten if it already exists.


Setup . clear all . set memory 50m . use pollute . spmat contiguity cobj using pollutexy, id(id) normalize(minmax)

Save the spmat object cobj to disk . spmat save cobj using cobj.spmat

Also see

Online: spmat, spreg, spivreg, spmap, shp2dta, mif2dta (if installed)