I have been told the earlier post was too vague. These codes
will save a "my_secret_secret" file, which can be used to get the
string names back after -svmat-.
sysuse auto, clear
encode make, gen(make_coded)
preserve
keep make make_coded
sort make_coded
save my_secret_secret, replace
restore
* arbitarily mix them
sort price, stable
* do your stuff
mkmat make_coded mpg, mat(results)
mat list results
drop *
svmat results
* this preserves the desired presentation order
gen id=_n
* merge
ren results1 make_coded
sort make_coded
merge make_coded using my_secret_secret
* this restores the desired presentation order
sort id
drop id _merge
_________________________________________________________________
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/