I am new to R coding and I am trying to model the returns on the ftse100
since 1990. I have got a vector with all the closing values on each trading
day. however, instead of using the difference in the closing values of two
consecutive days, (ie dx=diff(x) where x is the vector containing the
clos
how do I code the following in R. I want to produce a vector where dx=log(
(d(x))/(d(x-1)) ). I can do it for dx=diff(log(x)). I am learning/trying to
model log returns of a stock market index. But instead of using the
difference of the closing values of two consecutive days, i want to use the
log
2 matches
Mail list logo