Announcement

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

  • dissertation project

    Hi there. I have a very large data file with numeric energy ratings for houses by postcode, by the year they were inspected, and by tenure type. I would like to generate the average energy rating by postcode taking into account the year of inspection. So for example I would like the energy rating for houses in NW1 but the average to be calculated by the year. Does anyone have any advice?

  • #2

    Code:
    egen wanted = mean(rating), by(postcode year)

    Comment


    • #3
      Thanks, worked perfectly.

      Comment

      Working...
      X