Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: The Case of the Disappearing Command


From   [email protected] (Janet Elise Rosenbaum)
To  
Subject   st: Re: The Case of the Disappearing Command
Date   Sun, 5 Dec 2004 21:28:08 -0500 (EST)

Hello
Thanks for reminding me that I need to type di before functions.

In spite of my ignorance of the commandline, the mdy command really did
stop working in the context of a .do script which I have run 1000
times before, and it only worked again after I typed "update all".

This is the exact command, which now you understand why I didn't put in
my original email:
gen age1=floor(( mdy(ivx50193,ivx50192,ivx50195+1900)-mdy(agh48423,15, agh48424+ 1900))/365.25)

This morning, the do script worked.  This afternoon, the do script generated
all empty values for age1.  All the variables were non-missing.
It only worked again after I did "update all."

So, why did the mdy command disappear on me, and how can I keep commands
from disappearing again?

Janet
-- 
Janet Rosenbaum                                 [email protected]
PhD student, Committee on Health Policy, Department of Statistics, Harvard GSAS
*
*   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