get_conversion_rates: Get conversion rates

Description Usage Arguments Value Examples

Description

calculates for each time instant the conversion rate for converting asset i into asset j; that is the ratio of the prices of asset i and asset j

Usage

1

Arguments

prices

Matrix of asset prices, where each column represents an asset.

Value

Array[i,j,t] of conversion rates for converting asset i into asset j at time instant t.

Examples

1
2
3
4
5
6
7
# load data
data(NYSE)
# select stocks
x = cbind(kinar=NYSE$kinar, iroqu=NYSE$iroqu)

# get conversion rates
get_conversion_rates(x)

ngloe/olpsR documentation built on May 23, 2019, 4:42 p.m.