TimeSeriesLogReturn: Convert price series to log-return series

Description Usage Arguments Value Examples

View source: R/LIHNPSD.r

Description

Convert daily price series to log-return series by a specified time interval

Usage

1

Arguments

pr

Array of daily prices

days

Time interval, typically 1 for one day

Value

Array of log-return series

Examples

1
2
  pr <- c( 100.0, 102.0, 106.0, 105.0 )
  logr <- TimeSeriesLogReturn(pr,1)

LIHNPSD documentation built on May 2, 2019, 9:12 a.m.