[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: re: novice question about programs and Mata
capture program drop MyLittleProgram
mata: mata clear
program define MyLittleProgram
args one two
mata: venable()
end
mata:
void function venable()
{
one = st_local("one")
one
two = st_local("two")
two
}
end
MyLittleProgram test one
Within Mata, you do not dereference the local macro. You merely pass
its quoted name to the st_local function.
Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/