Statalist The Stata Listserver


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

st: RE: testing syntax on no observations


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   st: RE: testing syntax on no observations
Date   Mon, 21 Aug 2006 18:07:47 +0200

You can test on less observations:
preserve
keep in 1/10
do test.do
restore

HTH,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z434 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of evan roberts
Sent: maandag 21 augustus 2006 18:04
To: [email protected]
Subject: st: testing syntax on no observations

Is there a way to run do files (or ado files) on no observations to
test that there are no typographical errors that would cause the
program to stop?

People familiar with SAS will recognize this as analogous to being
able to set OPTION OBS = 0 at the beginning of a file to test the
syntax. The program will note that there are no observations, but
only actually report errors that would cause a submission with data
to fail (e.g; mis-named macros, loops that aren't closed etc.)

Thanks for any and all suggestions
Evan Roberts
--
***************
Evan Roberts
Minnesota Population Center and Department of History
University of Minnesota
[email protected]
http://www.pop.umn.edu/~eroberts
*
*   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