Hello,
I have a Panel Dataset and I am looking to calculate standard deviations of a variable, that is, quarterly inflation, for 53 countries over a period of 1980-2014. Could you tell me how I might be able to perform the same? I need to calculate the standard deviation over two different periods. For example, between 1980 and 1998 and then from 1999 and 2014.
I have performed the following, however I am not sure how stata calculates it, as upon using it I get one value repeated value for SD for each country. I am using Stata 12 and 13 (both) .
Any help would be extremely useful,
Thank you,
Mridula
I have a Panel Dataset and I am looking to calculate standard deviations of a variable, that is, quarterly inflation, for 53 countries over a period of 1980-2014. Could you tell me how I might be able to perform the same? I need to calculate the standard deviation over two different periods. For example, between 1980 and 1998 and then from 1999 and 2014.
I have performed the following, however I am not sure how stata calculates it, as upon using it I get one value repeated value for SD for each country. I am using Stata 12 and 13 (both) .
Code:
bys country : egen SD = sd(inflation)
Thank you,
Mridula
Comment