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

logret

Computes the Log Returns of a Time Series


Description

logret computes the log returns of a time series, with optional de-meaning and/or standardization.

Usage

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

## Default S3 method:
logret(dat, demean = FALSE, standardize = FALSE, ...)

Arguments

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.

Value

Log returns of the (de-meaned / standardized) data.

Methods (by class)

  • default: Log returns of vectors


stochvol

Efficient Bayesian Inference for Stochastic Volatility (SV) Models

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

We don't support your browser anymore

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