Announcement

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

  • Command egen...nvals with the option by

    I have a data set with the following variables:
    - cusip: company identifier
    - analystcode: analyst identifier
    - forecast: forecasted earnings per share
    - eps: actual company earnings per share
    - date: date on which the forecast was made
    - time: time at which the forecast was made
    - epsdate: date of the actual earning announcement made by the company

    And I want to compute a variable coverage defined as the number of analysts covering a given earnings announcement. (Hint: in Stata check the command egen...nvals with the option by.)

  • #2
    It is the practice here not to provide help with homework problems, which this post looks very much like it is requesting. If this is not a homework problem, please post back and explain the context.

    Also, it is the norm in this community to use our real first and last names as our username. You cannot edit the username in your profile, but you can message the forum administrator by clicking on "CONTACT US" in the lower right corner of this page and request the change be made. Thank you in advance for your cooperation.

    Comment


    • #3
      Clyde Schechter is right. For more, see

      https://www.statalist.org/forums/help#realnames

      https://www.statalist.org/forums/help#adviceextras #3 #4

      Comment

      Working...
      X