Re: [R] Yield-to-Maturity problem

2017-11-16 Thread Marc Schwartz
Hi, Another resource would be R-SIG-Finance, which is an R e-mail list focused in this domain: https://stat.ethz.ch/mailman/listinfo/r-sig-finance as well as the Finance Task View: https://cran.r-project.org/web/views/Finance.html

Re: [R] Yield-to-Maturity problem

2017-11-16 Thread peter dalgaard
This isn't all that likely to be homework, Bert However, Alexander, you may find that not many readers are familiar with YTM concepts. There's a chapter with R examples in Ruppert+Matteson's book (if you have SpringerLink, you may be able to download for free). Otherwise you could try sea

Re: [R] Yield-to-Maturity problem

2017-11-16 Thread Bert Gunter
This list has a no homework policy. Also, please read the posting guidebelow to learn what sorts of posts are legitimate and how to post. Note: plain text , not html, which often gets mangked by the server. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep com

[R] Yield-to-Maturity problem

2017-11-16 Thread Alexander Bergmüller
Hello everybody, I am not very advanced in my R skills so I really hope anybody of you can help me with this problem on which I have been working for hours. I would like to write a function, which can guess the yield-to-maturity for any values: C, NV, r, s1, s2, and for a freely chosen toleranc