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?
Second legend StataI have a coefficient plot of the following form: Code: sysuse auto eststo reg_1: reg price mpg ests…
Problem with outfileHi! I am using the outfile command to export a dataset.dta into csv: outfile using dataset.csv, co…
confidence intervals on proportionHi there Apologies in advance if this has already been answered elsewhere. I have a dataset of many …
Maybe the dumbest question everHello, I'm new to Stata. I have hunted around and can't seem to find a simple answer to what I'm sur…
Fractional response model with balanced panel data and binary endogenous and instrumental-variable.Dear All, I am using balanced panel for the model where the dependent variable is a fraction. Both e…
Subscribe to:
Post Comments (Atom)
0 Response to How to create variable of relative change?
Post a Comment