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
Help with countsHello, I am working on a prescribing data set containing details of about 100,000 people. The lay o…
coefplot graph, symmetry between dotsDear Statalisters, I am using the coefplot command to create one graph with coefficients from 40 di…
How drop some elements from a macro list of filesHi Statalist I have a question. I have the following datasets: 2008_a8.txt, 2010_a4.txt, 2012_a7.t…
Textbox position in bar graphsI am trying to change the position of subtitles in bar graphs. I've created a MWE from Stata's datas…
bayesgraphs diagnostics in Item Response ModelPlease, how do we use bayesgraphs diagnostics command in Item Response Model? Thanks for your antici…
Subscribe to:
Post Comments (Atom)
0 Response to Summing up individual-specific amount of variables
Post a Comment