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?
Testparm for Interaction termsDear STATALISTers, I would like to ask your help on an issue I´ve come across in terms of an intera…
ml model command for log-likelihood Nash Equilibrium modelI am attempting to run STATA code from Abbott (2009) (cited below). I am attempting to run this to a…
Dropping obs in a frame and expand to linked frame the selectionHi, I'm currently working on a frame linked m:1 to another. I deleted some obs from the dataset and …
Converting GPS data from Decimal Minutes Seconds to Decimal DegreesHi Statalisters, I need to convert GPS longitude and latitude data from the Decimal Minutes Second …
How to remove the thick x-axis line on a histogram?Hi, I created a histogram but there is a thick line on the x-axis. I checked using graph editor, an…
Subscribe to:
Post Comments (Atom)
0 Response to How to create variable of relative change?
Post a Comment