Computes the Log Returns of a Time Series
logret
computes the log returns of a time
series, with optional de-meaning and/or standardization.
logret(dat, demean = FALSE, standardize = FALSE, ...) ## Default S3 method: logret(dat, demean = FALSE, standardize = FALSE, ...)
dat |
The raw data. |
demean |
Logical value indicating whether the data should be de-meaned. |
standardize |
Logical value indicating whether the data should be standardized (in the sense that each component series has an empirical variance equal to one). |
... |
Ignored. |
Log returns of the (de-meaned / standardized) data.
default
: Log returns of vectors
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.