Announcement

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

  • What does "log using 'filename', replace" do? To create logs or to replace the existing ones?

    Dumb question, but in my professor's notes it's to "create log in current folder." But isn't it followed by a "replace?"

  • #2
    In general, within Stata, if you are creating a file in a given location, and Stata finds a file of the same name in the same location, it will give an error message and stop if you have not specified the replace option. The replace option - usually allowed on commands that create an output file - tells Stata that - if necessary - it is allowed to replace the existing file with the new one. If no such file exists, then the replace option is unnecessary, but causes no error. Think of "replace" as "replace if necessary".
    Last edited by William Lisowski; 05 Dec 2020, 14:37.

    Comment


    • #3
      Thank you William Lisowski for the help! Understood~

      Comment

      Working...
      X