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
Adopting bayes:mlogit when there is underlying latent variableDear statalist, I have been working on polytomous nominal responses with underlying latent variable …
stata2leaflet and stata2d3 -- updateI've recently written stata2leaflet 0.1.1, which uses the Mapbox API to get map tile images, and the…
How to avoid duplicates using rangejoin?Hello everyone! My goal is matching firms from two datasets with minimum difference in their Market…
Help with a graph bar Goo morning, I did this bar graph, but now I need the dark blue line to be a point and not a bar. …
Event StudyHi there, I'm pretty new to stata but I'm doing a thesis on the closure of youth clubs in London an…
Subscribe to:
Post Comments (Atom)
0 Response to Percentage change variable for daily data
Post a Comment