get_growth_rate: Get exponential growth rate

Description Usage Arguments Value Examples

Description

calculates the exponential growth rate (i.e. expected log-return) from the portfolio wealth

Usage

1

Arguments

wealth

vector of portfolio wealth

Value

vector of the portfolio's exponential growth rate

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# load data
data(NYSE)
# select stocks
x = cbind(comme=NYSE$comme, kinar=NYSE$kinar)
# specify portfolio weights
b = c(0.05, 0.05)
# calculate wealth
w = get_wealth(x, b)
# calculate exponential growth rate
get_growth_rate(w)

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