summing available daily observations to monthly
Posted: Wed Jun 11, 2025 7:46 am
Following other work in a literature, I would like to read in data that are daily at a limited number of dates (these come from an event study approach to constructing monetary policy shocks) to create monthly series that sum the available observations within a month and contains zeros for months with no higher frequency source observations. Consistent with what the reference manual describes, using a monthly calendar with compact=sum does not deliver this outcome (among other issues, it repeats observations across months). Is there some other way to do it? I have attached the source data in question along with a compact=sum approach that does not work as desired. Thanks much.