Statalist


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

st: RE: doubt how to avoid some problems with do files


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: doubt how to avoid some problems with do files
Date   Thu, 23 Oct 2008 09:30:38 +0200

Make sure you let the list know any error messages returned by Stata during
execution of the do-file. -exit- is probably redundant at the end of a
do-file. -log close- should work unless you have several logs open, then you
would need to use the -logname- to close it. 


HTH
Martin


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Rodrigo Briceño
Sent: Thursday, October 23, 2008 3:50 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: doubt how to avoid some problems with do files

Dear members of the list. I recently started to used Stata again for
doing some econometric modelling.
For practicing I generated a do file (I'm using version 9) for
estimation of some descriptive statistics. Everything runs ok
until the last part of the do file.
I have many ttests to be applied in the following form:

ttest edad if pob==1, by (op)
ttest edad2 if pob==1, by (op)
ttest sexo1 if pob==1, by (op)
ttest ed_nin if pob==1, by (op)

but nothing happens in that part...I think that I'm missing something
but not sure what.

I also ended my do file with the following instructions: log close and
exit (because I'm saving results in txt file). The thing is that when
the do file ends, the log is still open unless I do log close in the
output window.

Anyone can help me to try to solve these issues?

--
Rodrigo Briceño
Economist
+506  22-91-12-00 ext. 113   Office
+506  22-32-08-30                Fax
+506  88-86-11-77                Cell
rjbriceno@gmail.com
rjavierb@racsa.co.cr

MSN: jbric98@hotmail.com
SKYPE: rbriceno1087

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


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index