Description Usage Arguments Value Examples
This function takes a dataframe of stock prices and calculates the mean- variance efficient frontier. The period length can be manipulated to use an alternate time length for calculating the vcov matrix.
1 2 | solve_frontier(df, S_period = "monthly", min_ret = 1.0001, max_ret = 1.5,
size_out = 100)
|
df |
a dataframe to stock prices |
S_period |
the period length for the variance matrix. See |
min_ret |
the minimum return |
max_ret |
the maximum return |
size_out |
the number of obs in the returned df |
a dataframe of expected returns and variances
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.