Dear experts,
I have a dataset including monthly observations from June 2017 - June 2019, where I would like to calculate the 12-month relative change in price over a year for a specific product (i.e. pit=(pit/pit-12)). Whit the first possible number to get will then be June 2018.
Variable y_m is year and month such as 1804 corresponds to April 2018.
Any good advice on how to do this in STATA?
This is how the data looks like:
Array
Thank you,
Sofie
Related Posts with How to create variable of relative change?
skewness from moments2 into dataHi, I am trying to use "moments2" and use the skewness, kurtosis, and SD as my data. The following …
Population Census Data: Variable Preparation for PCA with sample weightsHello all, I am new to the Stata Community and working on the 2016 Canadian census of population mi…
Outliers, didn't solve Hi everybody I have the model below. I found that I have one outlier that has influence on the coef…
Stata 15:15 …
Stata 15: Default location to open a file or folder in windowsAs far as I remember, Stata versions prior to 15 would open the last accessed location when I tried …
Subscribe to:
Post Comments (Atom)
0 Response to How to create variable of relative change?
Post a Comment