Learn R Programming

factorstochvol (version 0.8.1)

logret: Computes the log returns of a vector-valued time series

Description

logret computes the log returns of a multivariate time series, with optional de-meaning.

Usage

logret(dat, demean = FALSE, ...)
"logret"(dat, demean = FALSE, ...)
"logret"(dat, demean = FALSE, ...)

Arguments

dat
The raw data, a matrix with n (number of timepoints) rows and m (number of component series) columns.
demean
Logical value indicating whether the data should be de-meaned.
...
Ignored.

Value

Matrix containing the log returns of the (de-meaned) data.

Methods (by class)

  • matrix: (De-meaned) log returns
  • data.frame: (De-meaned) log returns

See Also

fsvsample logret.matrix logret.data.frame