Announcement

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

  • How many years analysts have worked?

    Dear Statalist-Community,

    The Data set is a panel with years, analysts, firms and forecasts etc from I/B/E/S. The goals are:

    (1)How many years have analyst i worked in year t? --the first year analyst i gave forecast to year t

    (2)How many years have analyst i followed firm j in year t?--the first year analyst i gave forecast for firm j to year t

    Additional info: Analysts usually publish forecasts for multiple firms per year. The data set has already been reduced as there has only the last forecast of analyst i for firm j in year t been kept.

    Thanks in advance.
    Howard

  • #2
    Welcome to Statalist.

    Please 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. Note especially sections 9-12 on how to best pose your question.

    Even the best descriptions of data are no substitute for an actual example of the data. This problem is sufficiently complex that whoever helps you will want to be able to test their code in an example of your data.

    Please be sure to use the dataex command to show your example data. If you are running version 15.1 or a fully updated version 14.2, it is already part of your official Stata installation. If not, run ssc install dataex to get it. Either way, run help dataex and read the simple instructions for using it. dataex will save you time; it is easier and quicker than typing out tables. It includes complete information about aspects of the data that are often critical to answering your question but cannot be seen from tabular displays or screenshots. It also makes it possible for those who want to help you to create a faithful representation of your example to try out their code, which in turn makes it more likely that their answer will actually work in your data.

    When asking for help with code, always show example data. When showing example data, always use dataex.

    The more you help others understand your problem, the more likely others are to be able to help you solve your problem.

    Comment

    Working...
    X