Announcement

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

  • How to assign different values for different years in panel data

    Hi,
    I am trying to enter different CPIs (Consumer Price Index) for different years as a new variable. So the dataset should look like that:

    Year CPI
    1988 .35
    1988 .35
    1988 .35
    1988 .35
    1989 1.45
    1989 1.45
    1989 1.45
    1990 1.79
    1990 1.79
    1990 1.79
    1991 2.45
    1991 2.45
    1991 2.45
    1991 2.45
    1991 2.45
    1992 3.90
    1992 3.90
    1992 3.90
    1993 4.12

    However, I have not been able to find a code for that. Any help is appreciated.




  • #2
    I am trying to enter different CPIs (Consumer Price Index) for different years as a new variable.

    Please provide a clearer explanation of what you want to do. The data you show in your post appears to be exactly what you say you want. So what is it you actually want that you don't have?

    Comment


    • #3
      Originally posted by Clyde Schechter View Post
      Please provide a clearer explanation of what you want to do. The data you show in your post appears to be exactly what you say you want. So what is it you actually want that you don't have?[/FONT][/COLOR][/LEFT]
      Sorry for the confusion. The dataset is just the one that I want to create. I just wanted to give an example of what I want to do. So, I have the year column but I need to create the CPI column.

      Comment


      • #4
        where does the CPI data come from? if you have it in hand and need to enter it,
        Code:
        help input
        if you have it in a separate file and need to add it to a current file,
        Code:
        help merge
        help joinby
        in other words, you need to supply additional information on what you are starting from

        Comment

        Working...
        X