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
Creating Variable based on NAIC Digit Level match for FirmsI have a list of firms that I am comparing to each other using NAIC (Industry ID - 6 digits). I want…
Help with standard deviations of oaxaca commandDear all, I'm trying to replicate the results of the oaxaca9 command manually, but I have problems …
Testing the OLS assumptions in relation to standard robust errorsDear all, I'm testing the OLS assumptions for a multiple cross-sectional regression model. In rela…
Mixed effects (multilevel) model vs. cluster commandHi all I want to test the association between childhood behaviour at age 6 years and earnings at age…
Compute covariance and store in columnMy data are the following. I want to compute the covariance of dclose and dclose_lag for each ticker…
Subscribe to:
Post Comments (Atom)
0 Response to Command egen...nvals with the option by
Post a Comment