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.)
Related Posts with Command egen...nvals with the option by
Merging data using unique identifierDear My dataset is split across two large files. the master file has 10,000 respondents all uniquely…
How to perform repeat sales regression on housing dataDear all, I would like to perform a repeat sales analysis based on housing data from the American H…
How to refers the last n rows or obs in StataHi! I have a dataset with prices of stocks. It is a data panel by Code (the ticker of the stock) and…
How can I download Duun's test to STATA?Dear All, I want to do post hoc analysis after Kruskal Wallis test. I tried to do a Dunn's test, bu…
Limiting the range of data displayed in a graphGood day, I want to graph inheritances received in a histogram. Due to certain observations being v…
Subscribe to:
Post Comments (Atom)
0 Response to Command egen...nvals with the option by
Post a Comment