<div dir="ltr">See responses inline.<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 2, 2014 at 1:14 PM, Doug Martin <span dir="ltr"><<a href="mailto:martinrd@comcast.net" target="_blank">martinrd@comcast.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Ross,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Good to see. Main thing from my perspective is that I need to check my chapter 2 with the current version and see if I missed implementing my current examples with the “to be released” version of PortfolioAnalytics, and finishing off a couple more examples. I will do this during the coming week. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Other comments below.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Doug<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif"> <a href="mailto:gsoc-porta-bounces@lists.r-forge.r-project.org" target="_blank">gsoc-porta-bounces@lists.r-forge.r-project.org</a> [mailto:<a href="mailto:gsoc-porta-bounces@lists.r-forge.r-project.org" target="_blank">gsoc-porta-bounces@lists.r-forge.r-project.org</a>] <b>On Behalf Of </b>Ross Bennett<br>
<b>Sent:</b> Sunday, February 02, 2014 12:44 PM<br><b>To:</b> PortfolioAnalytics<br><b>Subject:</b> [GSoC-PortA] Finishing Touches to PortfolioAnalytics<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><div>
<div class="im"><div><p class="MsoNormal">All,<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">To put the finishing touches on PortfolioAnalytics, I propose the following items.<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">Enhance the print and summary methods for optimize.portfolio.rebalancing. Currently, a list of optimize.portfolio objects at each rebalance period is returned.<span style="color:rgb(31,73,125)"><u></u><u></u></span></p>
</div><p class="MsoNormal"><b><i><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">[Doug] So does that imply one can now input a list of portfolio optimization strategy objects to “optimize.portfolio.rebalancing”, e.g., each with different constraints and different objectives? (this would be very useful)</span></i></b></p>
</div></div></div></blockquote><div><br></div><div>No, that is currently not possible, but should not be too hard to implement. I could do this for optimize.portfolio as well. I think the most robust way to implement this would be to make optimize.portfolio() and optimize.portfolio.rebalancing() generic methods. </div>
<div><br></div><div>This would require a few minor design changes and I don't think it would break backwards compatibility. We would have to change the order of arguments for optimize.portfolio() and optimize.portfolio.rebalancing() so that 'portfolio' is the first argument, currently 'R' is the first argument.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple">
<div><div><p class="MsoNormal"><b><i><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></i></b></p><div class="im"><p class="MsoNormal"><b><i><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></i></b></p>
<p class="MsoNormal"> I'd like to change this to also return the R object so that I can do more with a summary method such as calculating the portfolio rebalanced returns, annualized return, risk measures, etc.<u></u><u></u></p>
</div><p class="MsoNormal"><b><i><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">[Doug] I guess there is the question of how much in the way of performance analysis gets done with a summary method, as compared with using PerformanceAnalytics on the result of optimize.portfolio.rebalancing.</span></i></b></p>
</div></div></div></blockquote><div><br></div><div>The idea is that I would use PerformanceAnalytics to calculate some of the metrics. Currently, optimize.portfolio.rebalancing returns a list of optimize.portfolio.* objects at each rebalance date. The user would have to do the following to calculate the portfolio returns.</div>
<div><br></div><div>opt_backtest <- optimize.portfolio.rebalancing(R, portfolio, ...) </div><div><div>portfolio_ret <- Return.rebalancing(R, extractWeights(opt_backtest))</div></div><div><br></div><div>I think it would be useful to calculate the portfolio returns in the summary method so the user would just have to do something like</div>
<div><br></div><div>summary(opt_backtest)$portfolio_returns</div><div><br></div><div>At a minimum the summary method would return the following:</div><div>- optimal weights at each rebalance date</div><div>- objective measures at each rebalance date</div>
<div>- portfolio returns</div><div>- portfolio annualized returns</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p><div class="im"><div><p class="MsoNormal">
<u></u> <u></u></p></div><div><p class="MsoNormal">Add function to generalize the plot from Peter's presentation. See attached image.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">
Address all warnings in R CMD Check<u></u><u></u></p></div><div><p class="MsoNormal">I just ran R CMD Check using Rstudio and the only warning I received was the following:<u></u><u></u></p></div><div><div><p class="MsoNormal">
* checking package vignettes in ‘inst/doc’ ... WARNING<u></u><u></u></p></div><div><p class="MsoNormal">Package vignettes without corresponding PDF/HTML:<u></u><u></u></p></div><div><p class="MsoNormal"> ‘DesignThoughts.Rnw’<u></u><u></u></p>
</div><div><p class="MsoNormal"> ‘ROI_vignette.Rnw’<u></u><u></u></p></div><div><p class="MsoNormal"> ‘portfolio_vignette.Rnw’<u></u><u></u></p></div><div><p class="MsoNormal"> ‘risk_budget_optimization.Rnw’<u></u><u></u></p>
</div></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">We don't have anything in inst/doc as all our vignette files (.Rnw and .pdf) are in the vignettes directory. How do I handle this warning.<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Final review of documentation.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I am just getting started playing around with the Bloomberg Portfolio Analysis module to see if there is anything we can borrow from there.<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Is there anything else that I need to consider?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">
Ross<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">P.S. Go Seahawks!<u></u><u></u></p></div></div></div></div></div><br>_______________________________________________<br>
GSoC-PortA mailing list<br>
<a href="mailto:GSoC-PortA@lists.r-forge.r-project.org">GSoC-PortA@lists.r-forge.r-project.org</a><br>
<a href="http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/gsoc-porta" target="_blank">http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/gsoc-porta</a><br>
<br></blockquote></div><br></div></div>