View source: R/performance_portfolios.R
| listPortfoliosWithFailures | R Documentation |
List portfolios with failures
listPortfoliosWithFailures(bt)
bt |
Backtest results as produced by the function |
Daniel P. Palomar
library(portfolioBacktest)
data(dataset10) # load dataset
# define your own portfolio function
portfolio_with_errors <- function(dataset, ...) {
return(NA)
}
# do backtest
bt <- portfolioBacktest(list("Portfolio with errors" = portfolio_with_errors), dataset10)
listPortfoliosWithFailures(bt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.