Bookmark and Share

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   William Buchanan <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Program def syntax
Date   Tue, 25 Feb 2014 04:31:13 -0600

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. 

HTH,
Billy

Sent from my iPhone

> On Feb 25, 2014, at 4:19, "Johannes N. Blumenberg" <[email protected]> wrote:
> 
> Dear statalist
> 
> 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'? :)
> 
> All the best,
> Johannes
> -- 
> Johannes N. Blumenberg, M.A.
> 
> Johannes Gutenberg-Universität Mainz
> Institut für Politikwissenschaft
> Bereich "Empirische Politikforschung"
> 55099 Mainz
> 
> Besucher-/Paketanschrift
> Hegelstr. 59
> Raum 06-211
> 55122 Mainz
> 
> Tel.: +49 6131 39 38463
> E-Mail: [email protected]
> WWW: www.Johannes-Blumenberg.de
> *
> *   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/

*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index