version 10 capture log close /* This closes any open log files. These can be left if a do file stops with an error before the end. See -help capture- */ clear /* clears all data, matrices etc from memory */ set more off /* see -help more- */ log using ex1_1.log, replace ******** ec968 ex1.1 (ex1_1.do) ******************************** * this is a test job cd use cancer describe summarize * add any other commands you like su studytim, de list studytim died if drug == 1 ta drug // add comments like this too count if drug==1 ta drug died, row col log close