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
Post hoc analyses after multi-nominal regressionHello, I have a dataset with a categorical outcome variable (strategy) that includes four groups. I…
Rangestat to regress multiple values in panelHello everyone, I have a panel along the variables Dates and gvkey and am trying to calculate the v…
fitted lines after qreg?Dear All, Given the following data (taken from https://cran.r-project.org/web/packa...gnettes/rq.pdf…
Help with TVDIFF/ plotting time-varying treatment effects?Hi all, I have a case where the treatment is binary and varies over time. I am trying to use the us…
Inverted u-shaped relation: how to deal with a moderatorHi all, I've found an inverted u-shaped relation between the dependet variable "roa" and the variab…
Subscribe to:
Post Comments (Atom)
0 Response to Group averages and assign them to a specific date
Post a Comment