Hello,
I have a panel data like this (unbalanced)
ID Year V1 V2
0 2005 30 19
0 2006 20 67
0 2007 4 54
0 2008 5 32
0 2009 17 98
0 2010 18 6
0 2011 9 74
1 2006 20 67
1 2007 4 54
1 2008 5 32
1 2009 17 98
1 2010 18 6
1 2011 9 74
2 2006 20 67
2 2007 4 54
2 2008 5 32
2 2009 17 98
2 2010 18 6
2 2011 9 74
Could any one help me to get the rolling Standard deviation over 5 years for V1, and the rolling mean of V2 over 5 years?
Related Posts with Help to get rolling average (standard deviation) over 5 years
Problems with collapse commandHello everyone, I have a dataset with Italian data on electoral outcomes. My dataset contains inform…
Grouping by days and timeHi. I have data on hospital visits for the period of Oct 1, 2022 - Feb 28, 2023. The visits have the…
instrument variable when using bins of endogenous independent variable as independent variablesDear All, In my research, for example, trunk is the endogenous independent variable of interest and…
Jeff Wooldridge teaching Causal Inference and DiD methods in StataHi everyone In case you're interested, Jeff Wooldridge is offering two Instats seminars on Causal I…
Multiple omitted categories when interacting?Possibly a rudimentary question, but I am unsure how my interaction is behaving this way. When I use…
Subscribe to:
Post Comments (Atom)
0 Response to Help to get rolling average (standard deviation) over 5 years
Post a Comment