Description Usage Arguments Value Examples
calculates the exponential growth rate (i.e. expected log-return) from the portfolio wealth
1 | get_growth_rate(wealth)
|
wealth |
vector of portfolio wealth |
vector of the portfolio's exponential growth rate
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.