Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Assigning value of a function to a local macro
From 
 
Navid Asgari <[email protected]> 
To 
 
"'[email protected]'" <[email protected]> 
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/