Announcement

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

  • #16
    Originally posted by Nick Cox View Post
    The backslashes in earlier posts arise because of cross-posting on https://www.reddit.com/r/stata/comme..._generate_the/ and of getting confused between two modes of editing allowed there. Please note our policy on cross-posting, which is that you are asked to tell us about it.

    In #10 you must install rangestat before you can use it.

    Code:
    ssc install rangestat
    As its help explains, regress does not support an option interval(). That's an option of rangestat.
    Thank you for the reply, and I have deleted the post, I will be aware of it! sorry

    Comment


    • #17
      Originally posted by Emma Ien View Post
      Also what codes should I add in if I also want to do an event window for

      Code:
      w_event = inrange(days,-1,1)
      gen w_event = inrange(days,-5,5)
      this is my current code
      Code:
      ssc install rangestat
      You specify the window using the -interval()- option of rangestat. See

      Code:
      help rangestat
      for examples.

      Comment

      Working...
      X