Re: [R] Yield to maturity in R

2013-10-31 Thread Enrico Schumann
On Wed, 30 Oct 2013, Katherine Gobin katherine_go...@yahoo.com writes: Dear R forum, Just want to know if there is any function / package in R which will calculate Yield to Maturity in R for a given bond? Regards Katherine require(sos) findFn(yield to maturity) -- Enrico Schumann

[R] Yield to maturity in R

2013-10-30 Thread Katherine Gobin
Dear R forum, Just want to know if there is any function / package in R which will calculate Yield to Maturity in R for a given bond? Regards Katherine [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] Yield to Maturity using R

2010-02-02 Thread Madhavi Bhave
Dear R helpers,     Yesterday I had raised following query which was addressed by Mr Ellison. The query and the wonderful solution as provided by Mr. Ellison are as given below.    ## PROBLEM   I am calculating the 'Yield to Maturity' for the Bond with following characteristics.    Its a $1000

Re: [R] Yield to Maturity using R

2010-02-02 Thread Eik Vettorazzi
Hi Madhavi, the error message means, that your function returns NA evaluated at the lower limit of the search interval. try f.ytm(0) to check that. I think, for (i in 1 : (tenure * no_comp - 1)) E = NULL F = NULL { E[i] = cash_flow[i]/(1+ytm)^i F = (sum(E) + (face_value +

Re: [R] Yield to Maturity using R

2010-02-02 Thread Madhavi Bhave
Subject: Re: [R] Yield to Maturity using R To: Madhavi Bhave madhavi_bh...@yahoo.com Date: Tuesday, 2 February, 2010, 3:49 AM Hi: On Tue, Feb 2, 2010 at 3:01 AM, Madhavi Bhave madhavi_bh...@yahoo.com wrote: Dear R helpers,     Yesterday I had raised following query which was addressed by Mr