-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maximum Sharpe Ratio fails with error in PortfolioAnalytics #26
Comments
I have found the exact point in the code where PortfolioAnalztics fails for this particular case. In function
What actually happens is that for this particular example
I tried with increasing
This are the results for different values of
Any ideas or better approach to solve this problem or find a workaround? |
I have come across an issue in PortfolioAnalytics. It might be that my data (downloaded from Yahoo Finance) simply has issues but I guess this should not lead PortfolioAnalytics to fail. I also doubt this is data issue since just directly using ROI package solves for Max Sharpe portfolio without any issues (see ROI example code below).
Below is reproducible code that shows the problem:
This is the output in R when I run the code above:
My sessionInfo():
I have also posted this as a question on R-SIG-Finance a couple of days ago.
This works with pure ROI implementation without any problems:
Output in R console:
The text was updated successfully, but these errors were encountered: