Announcement

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

  • how to run do file in stata

    hi i have a do file that petersen posted online: http://www.kellogg.northwestern.edu/...g_Instructions
    he simply says to type: do simulation firm_effect_x firm_effect_r number_of years
    when i do so, i get an error message: file simulation.do not found.

    how do i deal with this?

    also, when i just run do file clicking on the do icon, i get a program error: matching close brace not found.

    thank you advance for helping me.

  • #2
    duplicate post - look at the other posting and you will see the right answer: you did not download the do file and you need to do that

    Comment


    • #3
      You need to change Stata's current directory to the one that contains the do-file (see help cd) and then run the do-file. The do-file expects 3 arguments. So type something like

      Code:
      do simulation .1 .8 5
      in Stata's command window.

      Note that you can run the do-file directly using

      Code:
      do "http://www.kellogg.northwestern.edu/faculty/petersen/htm/papers/se/simulation.do" .1 .6 5
      You should probably type

      Code:
      version 8
      before running the do-file since uses pretty old syntax and the date and time reports don't won't under current syntax.

      Comment

      Working...
      X