Hello,
I am writing my dissertation thesis on the impact of Brexit negotiations on the value of the pound in 2019. To do this, I am empirically testing the change in several exchange rates as a result of news developments concerning Brexit.
I want to create a variable that measures the percentage change between the close price of each day.
My data is set up as follows:
close
1st day - 1.275429
2nd - 1.252191
3rd - 1.262881
4th - 1.273496
5th - 1.278609
I want to create a variable that performs the rate of returns formula, which in this instance would be: close - close-1 / close (e.g. with a above data: 1.252191 - 1.275429 / 1.252191)
Any advice on how to create this variable would be much appreciated.
Related Posts with Percentage change variable for daily data
Three-level ZINB in StataHi, I use Stata 16.1 and I need to run a 3-level Zero Inflated Negative Binomial regression. I have…
Mean of means, with means obtained from by year, sort + weigthsHello, I have obtained the mean, median, stdev by year (I have 18 years in the sample) for my expen…
generating separate variables from one variables's observations, is there a loop?Dear all, From the variable v I would like to generate 3 variables: v1, v2, v3. Given that these ar…
exporting many tables to excelHi , I have a question about how I can export many tables in a good format. I am trying to run regre…
Cleaning for Optimal Modeling (ft. Panel Data)Hello Everyone, Let's say I would like to do a linear regression on some Panel data without knowing…
Subscribe to:
Post Comments (Atom)
0 Response to Percentage change variable for daily data
Post a Comment