Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


highfrequency (version 0.5.3)

makeReturns: Compute log returns

Description

Function returns an xts object with the log returns as xts object.

log returnt=(log(PRICEt)log(PRICEt1)).

Usage

makeReturns(ts);

Arguments

ts

xts object

Value

an xts object containing the log returns.

Details

Note: the first (row of) observation(s) is set to zero.