Hi,
I am trying to generate a household-specific monetary policy shock variable. Generally I have two data sets.
One containing panel data on household level from 2004-2018. The other contains changes in euro swaps around ECB meetings which is my indicator of monetary policy shocks.
Now I need to merge the two data sets. However, the households were interviewed at different points in time during the same year which means that HH1 that was interviewed in week 12 of 2004 and then again in week 20 of 2015 has experienced more monetary policy meetings than HH2 that was interviewed in week 12 of 2004 and then again in week 12 of 2005. Therefore, I have to sum up the changes in the Euro Swap for every HH individually from week x year t-1 to week x year t.
Do you know any command that would allow me to sum up the HH-specific amount of meetings more efficiently than doing it manually for 6,000 observations for 14 years.
Thank you,
Fabienne Leibfarth
Related Posts with Summing up individual-specific amount of variables
spmatrix -same coordinatesDear all, I tried to create an inverse spatial weight matrix, but without success. I rely on a cros…
Coding participants with metabolic syndromeHi there, I would like to categorize participants in a dataset that I am using by whether or not th…
Export first stage results using esttab with ivprobit and birprobitIs there a way to export first-stage results from -ivprobit- and -biprobit- using -esttab-? I know o…
Factor variable and interaction in syntax commandHi, I am trying to add interaction terms into a simple new command. Something simple like this: C…
Wald exogeneity test with -biprobit-Dear Statalisters Is there an in-built command/option with -biprobit- which shows the result for Wal…
Subscribe to:
Post Comments (Atom)
0 Response to Summing up individual-specific amount of variables
Post a Comment