Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

logret

Compute 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

## S3 method for class 'matrix'
logret(dat, demean = FALSE, standardize = FALSE, ...)

## S3 method for class 'data.frame'
logret(dat, demean = FALSE, standardize = FALSE, ...)

Arguments

dat

The raw data, a matrix or data frame with n (number of timepoints) rows and m (number of component series) columns.

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.

Value

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


factorstochvol

Bayesian Estimation of (Sparse) Latent Factor Stochastic Volatility Models

v0.10.2
GPL (>= 2)
Authors
Gregor Kastner [aut, cre] (<https://orcid.org/0000-0002-8237-8271>), Darjus Hosszejni [ctb] (<https://orcid.org/0000-0002-3803-691X>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.