Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: re: syntax


From   David Airey <[email protected]>
To   [email protected]
Subject   st: re: syntax
Date   Sun, 19 Oct 2008 09:41:58 -0500

This point is correct. Sorry about the other one. The question still remains.

I have not used syntax much. When I write the syntax command,

syntax varlist(min=2 max=2 numeric) [if] [in] [, noconstant]

I find it parses

mycommand weight weight2 , constant

differently than

mycommand weight weight2, constant

The top parses `2' to weight2 and the bottom parses `2' to weight2, (includes the comma). Use of tokenize varlist avoids this problem, but is it a long standing feature of syntax to require option commas to be separated by white space? I can't remember being careful about how I type that interactively.

Cheers,

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



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index