I have been looking on the forum for a topic about three-year volatility but I didn't find what I wanted.
I have panel data which looks like: Firm ID CFO Fiscal Year
1 0.042 2011
1 0.057 2012
1 0.032 2013
1 0.045 2014
1 0.031 2015
1 0.030 2016
2 0.041 2011
2 0.048 2012
2 0.051 2013
2 0.050 2014
2 0.034 2015
2 0.043 2016
2 0.041 2016
I would like to calculate the three-year volatility (measured as standard deviation over the year t, t-1 and t-2). I have been trying to compute this but it didn't work.
Does anyone know how to do this?
Thank you in advance!
Related Posts with Three-year volatility
Bootstrapping across multiple lines of codeI am trying to do a bootstrap exercise where I run a regression for each bootstrap and then compute …
Matched data for regressionI am new to STATA. I am working on DHS dataset. I have merged the men recode file with the individua…
How can I make these codes more compact using foreach/forvalues/local etc.?Hi everyone, I am sure there must have been a way to make the following codes more compact but no m…
Estimating propensity scores after multiple imputationHi there, I am estimating propensity scores using logistic regression on an imputed dataset (M=10).…
Creating Control Variable using IPUMS CPSHey guys, I am currently trying to do a regression with panel data from the IPUMS CPS. I have mostl…
Subscribe to:
Post Comments (Atom)
0 Response to Three-year volatility
Post a Comment