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

Re: st: -stylerules- updated on SSC


From   Ronán Conroy <rconroy@rcsi.ie>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: -stylerules- updated on SSC
Date   Thu, 14 Apr 2005 15:54:49 +0100

Nick Cox wrote:

Depends on what anyone means by "many"...

I find that novices often over-comment, as in

        // now find the sum
        su `myvar' if `touse', meanonly
        local sum = r(sum)

I think that there is a useful distinction to be made between commenting a program and commenting a do file. Most novices under-comment do-files that prepare data for analysis and conduct the analysis.

I was reading over some do-files I wrote 10 years ago and horrified at the tweaks and changes I made to the data which presumably fixed errors identified by the researcher at the time, but whose rationale is nowhere documented. But I am less a Stata novice than I was then.

At least, until Mata hits my desktop.

--

Ronan M Conroy (rconroy@rcsi.ie) Senior Lecturer in Biostatistics Royal College of Surgeons Dublin 2, Ireland +353 1 402 2431 (fax 2764) -------------------- Just say no to drug reps http://www.nofreelunch.org/

--------------------------------------------------------------------------------------------------------------------
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.
If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of The Royal College Of Surgeons in Ireland.

--------------------------------------------------------------------------------------------------------------------


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