--- [email protected] wrote:
> capture program drop problem
> program problem
> version 10
> syntax [varlist], a(integer) b(real) c(real) d(real) e(real) ///
> f(real) g(integer) h(integer) [i(integer)]
<snip>
> The following error shows up:
>
> invalid syntax
> r(197);
If you make the option -i()- optional you have to specify a default
value, so instead of your syntax command you need to write:
syntax [varlist], a(integer) b(real) c(real) d(real) e(real) ///
f(real) g(integer) h(integer) [i(integer 5)]
if you want the default to be 5.
Hope this helps,
Maarten
-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands
visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434
+31 20 5986715
http://home.fsw.vu.nl/m.buis/
-----------------------------------------
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/