Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

AW: st: Re: Pass Integers to Program


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   AW: st: Re: Pass Integers to Program
Date   Mon, 18 Feb 2008 09:27:03 +0100

Guys,

thanxx for the advice but what goes for the dots in "syntax..., values"? I
really cannot get this to work, everytime I try it, I get error codes r(197)
and r(198)...

Martin Weiss
_________________________________________________________________

Diplom-Kaufmann Martin Weiss
Mohlstrasse 36
Room 415
72074 Tuebingen
Germany

Fon: 0049-7071-2978184

Home: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1130

Publications: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1131

SSRN: http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=669945

-----Urspr�ngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Maarten buis
Gesendet: Montag, 18. Februar 2008 08:17
An: [email protected]
Betreff: Re: st: Re: Pass Integers to Program

--- Michael Blasnik <[email protected]> wrote:
> It would be easiest to make this a "required" option because you
> could then use the numlist syntax.
> 
> syntax ..., values(numlist min=1 max=49 integer ascending)

Very true, but min and max here refer to the number of element, so you
will want to fix those at 6, and the range is governed by > and <. So
to require everybody to give a list of 6 integers between 0 and 50
(exclusive) and to sort those numbers you type:

syntax ... , values(numblist min=6 max=6 >0 <50 sort integer)

This way the block of code Michael added for checking the number of
elements in `values' becomes unnecesary.

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


      ___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For Good
http://uk.promotions.yahoo.com/forgood/
*
*   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/


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



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