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
Odds ratio and ConHi all, I have a three-part question from a logistic regression. In the case of this study, I have t…
Multiple lineal regression / Dummy variable, interactions and confounding variablesHi. I apologize if this is no a question I should post here. I am trying to analyze the interaction …
How to export this table to excel from statasysuse auto tab foreign,sum(price) This code generates a table that I need to export to Excel. Can …
Data Categorization txt fileDear All I have daily share price data in a txt file. The issue is to split the variables into dif…
country/regional fixed effectsHi I have a question regarding country fixed effects. I am quite new to this subject, so apologies f…
Subscribe to:
Post Comments (Atom)
0 Response to Percentage change variable for daily data
Post a Comment