Announcement

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

  • **HELP** How to increase dataset in Stata to range from earliest to latest point in time?

    Hi,

    I am working with a panel dataset and it includes different ranges for each ID. For example, country A might range from year 1950-2014, country B from 1970-2016. Is it possible to set a fixed range? In my case, I would like to set a range between 1946-2016. When an ID doesn't have data for a particular observation, STATA should automatically fill it with missing data.

    Thank you in advance!

    Gentian Gashi

  • #2
    You can ignore years outside that range by selecting e.g.

    Code:
    ... if inrange(year, 1946, 2016)
    But there is zero point to bulking out the dataset with lots of missings. Stata couldn't do anything useful with them!

    Hint: In many forums writing stuff like HELP is called SHOUTING as many people get a synaesthetic sense of shouting when they read a lot of upper case. My evidence is that you are less likely to get an answer if you do that, not more!

    Comment


    • #3
      Hi,

      Thank you for the help.
      As this was my first time in the forum, I did not know how help is usually requested, but duly noted.

      Comment


      • #4
        Welcome to Statalist.

        For further tips on how to make effective use of Statalist, you can review the Statalist FAQ linked to from the top of the page, as well as from the Advice on Posting link on the page you used to create your post.

        Comment

        Working...
        X