Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Navid Asgari <navid@nus.edu.sg> |
To | "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu> |
Subject | st: Assigning value of a function to a local macro |
Date | Thu, 10 May 2012 17:40:20 +0800 |
Hi Statalist, I am trying to assign the value of a function to a local macro, but I get "Invalid Syntax"? I type: local byear=min(year) year is the variable whose minimum has to be saved in the local macro "byear" Any idea? Thanks, Navid * * 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/