Announcement

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

  • #31
    Dear Ulrich,

    first of all, thank you very much for the very useful package to use PSID data in Stata. PSID recently updated their new 2017 wave and I am having problems with using the psidtool package to download the new data. I get an "invalid name" error message. I would be very thankful if you could help me with this problem.

    Thank you!

    Comment


    • #32
      Dear Ulrich,

      I have been working on the following code using "psid use", but it's not working:

      psid use
      ||expenditures
      [81]V7564 [81]V7566 [81]V7568
      [82]V8256 [82]V8258 [82]V8260
      [83]V8864 [83]V8866 [83]V8868
      [84]V10235 [84]V10237 [84]V10239
      using "C:\Users\Ahmed Alam\Desktop\Replicate_Cochrane (1991)", clear

      Basically, I am looking for total food consumption for each of 1980, 1981, 1982, and 1983. Total food consumption is the sum of food expenditure at home, food away from home, and food stamps. For example,

      Total food consumption in 1980 = food exp at home in 1980 + food away from home in 1980 + food stamps received in 1980
      So, total food consumption in 1980 = 1981 V7564 + 1981 V7566 + 1981 V7568. (all three fall under the same index "food")

      Similar measure applied for other years.

      However, if I am not wrong "psid use" does not allow a specific year more then once under the same index. Specifically, it's not allowing more than one 1981 data under the food index. This is the error I'm getting:

      ". psid use || expenditures [81]V7564 [81]V7566 [81]V7568 using "C:\Users\Ahmed Wasiful Alam\Desktop\Replicate_Co
      > chrane (1991)", clear
      (0 real changes made)
      (29,371 real changes made, 29,371 to missing)
      (18,992 real changes made)
      (61,674 observations deleted)
      Balanced panel design
      variable expenditures1981 already defined"

      How can I use data for same year (1981) under the same index (food) for multiple times?

      Thanks.

      Comment

      Working...
      X