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]
Re: st: Program def syntax
From
Nick Cox <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: Program def syntax
Date
Tue, 25 Feb 2014 10:36:55 +0000
In this case the -syntax- statement that was given does seem the heart
of the problem. Mentioning -program define- in the posting title was
not relevant to the difficulty.
Nick
[email protected]
On 25 February 2014 10:31, William Buchanan <[email protected]> wrote:
> The same kind of "black sorcery" necessary for people to follow the guidance listed in the FAQ? All kidding aside, you really should include your -prog def- statement. If you're not defining the program with some form of -byable- property you may have other problems. And if you are passing a variable list to that option you may want to try enclosing the local macro inside of compound double quotes to prevent errors cause by expanding a macro with embedded strings.
On Feb 25, 2014, at 4:19, "Johannes N. Blumenberg"
>> I got a small question regarding the program define syntax. I defined a program and set its syntax to
>> syntax varlist [, BY(varlist) MOreoff]
>>
>> However, I am unable to access the varlist defined in "by". All that Stata returns to me is that the statement is true, when I try to display its content with the help of di `by'.
>>
>> When I put three variables into the by argument Stata returns "1.2". All reading in the guidelines etc did not help me.
>>
>> So, which kind of black sorcery is needed to return the variablelist defined in `by'? :)
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/