Announcement

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

  • Newbie question - Restricting a time series regression to a subset of the available data

    Dear forum members,

    I would like to limit my time series regressions to a subset of the data available. I mean, instead of using the entire sample (from 1956 to 2023), being able to restrict the regression to the years between 1971 and 2013 (something similar to what can be accomplished on EViews by using the "smpl" command).

    How do I do this on Stata?

    Thank you.

  • #2
    Code:
    help if
    Code:
    help inrange()

    Comment


    • #3
      the answer depends on what the "year"variable looks like (e.g., string or numeric) but if it is numeric you can use the inrange() function; see
      Code:
      help inrange()

      Comment


      • #4
        Andrew and Rich, thank you for your answers.

        Comment

        Working...
        X