Last chance! 50% off unlimited learning
Sale ends in
powered by
Function returns an xts object with the log returns as xts object.
log returnt=(log(PRICEt)−log(PRICEt−1)).
makeReturns(ts);
xts object
an xts object containing the log returns.
Note: the first (row of) observation(s) is set to zero.