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?
Margins for Interaction TermI have run the following regression and am trying to analyse whether the initial level of Income of …
Help needed to fix GMM iteration problemI am trying to write a wrapper using GMM. When I do it manually, it converges very fast and provides…
Merging two panel datasetsHello everyone, I have searched the forum but did not manage to find help for my problem. Im new to …
Mata question on garbled codes in Chinese characters output by PdfDocument()Dear Listers: I am using PdfDocument() in Stata 14.0 to creat a table with contents in Chinese. Alth…
What kind of a binary regression model should I choose if I work with pool or panel data?Hello! I have a longitudinal dataset, which contains observations of individuals between 2008-2017.…
Subscribe to:
Post Comments (Atom)
0 Response to How to create variable of relative change?
Post a Comment