Hi,
I am trying to make average of the median EPS that have been forecasted 90 days before the earnings announcement date.
These are the variables that I have:
storage display value
variable name type format label variable label
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
statpers long %d I/B/E/S Statistical Period (SAS Format)
median_eps double %12.0g Median Estimate
fpedats long %d Forecast Period End Date (SAS Format)
actual double %12.0g Actual Value, from the Detail Actuals File
announce_date long %d Announce date of the Actual, from the Detail Actuals File
cusip str8 %8s CUSIP/SEDOL
Per company I would like to make a variable predicted_EPS and actual_EPS. The actual EPS that I have right now is the same for each announcement date of each company. I think what I essentially want is to have one announcement date every year for each company and that I have the average of the median_eps that fall within the interval of 90 days prior to the earnings announcement date. Does anyone know how to achieve such a thing?
Kind regards,
Sarah
Related Posts with Group averages and assign them to a specific date
Ploting Panel data averages with labelsDear Forum Members, I want to plot the country averages of growth of GDP per capita and population f…
Merging data but file not foundHello Statalists! I've been using STATA's merge function for a while, but this is something I've ne…
i.year not controlling for first year when using xtreg/regThe xtreg command I'm using is Code: xtreg log_dep_sum c.indep_perc##i.industry_abovemed i.month,f…
Firm fixed-effectHi, I am using firm fixed-effect in my main regressions and the results are significant. When I run …
Problem concerning panel aata with duplicate time variablesDear all, I have a dataset of 40 companies with a total of 975 votes and want to look at the impact …
Subscribe to:
Post Comments (Atom)
0 Response to Group averages and assign them to a specific date
Post a Comment