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
any command like -stack- ?Dear Stata users, I have a task in hand that seems to be accomplished using -stack-, but it failed.…
Gls problemHi Forum! I have a problem with GLS method. I'm not sure that the Stata command "xtgls" is correct f…
.do file protectionHi ! Is there anyway .do file can be protected? …
Variable section for panel dataHi. I have a balanced panel data for a holdout sample of 120 with 12 variables and a time period of …
drop missing variables except for one yearHello, I have a panel dataset (2013-2018) in which I want to delete all observation of which I do n…
Subscribe to:
Post Comments (Atom)
0 Response to Help to get rolling average (standard deviation) over 5 years
Post a Comment