Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • can anyone share a template of beginning of do file?

    Currently, I just have three lines at the beginning of my do file. What do you think?

    Code:
    clear *
    use "xxx.dta"
    cd "xxx"

  • #2
    *Date*
    set more off
    *Maybe the general purpose of the do file (this may get longer as the do file does)*

    Comment


    • #3
      There is no general template for the beginning of a do-file. It all depends on what you want to record within the do-file. So you should explain what exactly you want to do instead of asking for a general template.
      Some people would start every do-file with lines similar to this
      Code:
      capture log close
      log using task_`=c(current_date)'_`=c(current_time)'.log ,replace text
      ... tasks
      
      log close

      Comment

      Working...
      X