Announcement

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

  • Question regarding -set seed-

    Hi,

    This might sound a bit silly but I just wanted to be sure.

    If I am understanding the help file correctly, you should only use -set seed- once in your do file, even if you have two commands which use simulations in that do file, right? E.g. -sqreg, reps(#)- and -bsqreg, reps(#)-. Or do I need to set the seed before each command line?

    Thanks in advance!

  • #2
    Alina:
    as per -set seed- entry in Stata .pdf manual (page 2468-9) it's better to set the seed only once.
    Kind regards,
    Carlo
    (Stata 18.0 SE)

    Comment


    • #3
      Originally posted by Carlo Lazzaro View Post
      Alina:
      as per -set seed- entry in Stata .pdf manual (page 2468-9) it's better to set the seed only once.
      Thank you very much, Mr Lazzaro!

      Comment


      • #4
        Alina:
        Carlo is enough!
        Kind regards,
        Carlo
        (Stata 18.0 SE)

        Comment


        • #5
          Originally posted by Carlo Lazzaro View Post
          Alina:
          Carlo is enough!
          Noted!

          Comment

          Working...
          X