夏目贵志 发表于 2013-7-9 19:17 
另外,谁能顺便告诉我macro (global and local)能在mata里用吗?
William Gould 在他的paper里有几段说到:
"The first rule for programming in Mata is to forget that macros even exist. Macros
are not necessary and, in fact, all your ado-file instincts will mislead you. Everything
macros do for you in ado-files is performed in Mata by Mata variables.
........
Mata does not need macros, but that does not mean you cannot work with macros in
Mata. Macros are such an important part of Stata that you will sometimes want to
access a macro’s contents or change those contents.
........."
简言之,按理mata不须要macro,
但如果您真的手痒,好吧!
请
help st_local
help st_global
参考就好,我mata不熟的。