Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Michael McCulloch <mm@pinestreetfoundation.org> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: Tracking comments in a data audit do-file |
Date | Mon, 25 Nov 2013 18:04:08 -0800 |
To those who may be interested in ADDNOTE: 1. On the Mac, simply include "*.txt" in the file rename command called notefile. 2. Avoid the use of apostrophes, as they cause the command to crash with the error message: /bin/bash: -c: line 0: unexpected EOF while looking for matching `'' /bin/bash: -c: line 1: syntax error: unexpected end of file Best wishes, Michael McCulloch -- Pine Street Foundation, since 1989 124 Pine Street | San Anselmo | California | 94960-2674 P: (415) 407-1357 | F: (206) 338-2391 | http://www.PineStreetFoundation.org On Nov 24, 2013, at 9:15 AM, Nick Cox wrote: > There are lots of ways to do it, going back to > > STB-14 os10 . . . . . . . . A method for taking notes during a Stata session > (help addnote, notefile if installed) . . . . . . . . . . . W. Rising > 7/93 pp.10--11; STB Reprints Vol 3, pp.68--69 > allows appending notes to a file without interrupting a > Stata session > > if not earlier. One is to treat your do file as a new Stata dataset > with a single string variable and to use the string functions to > select lines of interest. > > Nick > njcoxstata@gmail.com > > > On 24 November 2013 17:07, Michael McCulloch > <mm@pinestreetfoundation.org> wrote: >> Hello, >> I am conducting a data audit, recording my steps with a do-file. >> >> As I examine each variable, at the last line of that section in the audit do-file, I type a comment, for example: >> >> .tab date uti if id==. //id is okay; only missing are dates 17may2013 to 28may2013, during pilot work prior to study launch >> >> Is there a way to flag these lines of code for which I wrote these comments, so that a report can be generated, itemizing each of these lines//comments >> >> Best wishes, >> Michael McCulloch >> >> -- >> Pine Street Foundation, since 1989 >> 124 Pine Street | San Anselmo | California | 94960-2674 >> P: (415) 407-1357 | F: (206) 338-2391 | http://www.PineStreetFoundation.org >> >> >> * >> * For searches and help try: >> * http://www.stata.com/help.cgi?search >> * http://www.stata.com/support/faqs/resources/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/faqs/resources/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/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/