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
Age calculated from months and yearsHi, I know that many questions have been posted about working with dates in Stata. I have not been …
<istmt>: 3499 control(), mata function, not found... an error occurred when simulate executed cfsimuI have written the following do file to conduct some Monte Carlo simulation. However, for some reaso…
How can I convert Variable names into the value of a new variable - in Stata?Dear All, I have a dataset that looks like this: year a b c ... 2000 value value value 20…
Suest after a list?Dear all I have a list of coefficient and standard error averages (following my previous post 15766…
I want to regress the cumulative returns for each month, using*the most recent available data for all other variables.This is what my data looks like for one particular stock with the id 10104 (id variable is PERMNO): …
Subscribe to:
Post Comments (Atom)
0 Response to Percentage change variable for daily data
Post a Comment