search for: ytm

Displaying 11 results from an estimated 11 matches for "ytm".

Did you mean: atm
2010 Feb 02
2
Yield to Maturity using R
...as given below.    ## PROBLEM   I am calculating the 'Yield to Maturity' for the Bond with following characteristics.    Its a $1000 face value, 3 year bond with 10% annual coupon and is priced at 101. The yield to maturity can be calculated after solving the equation -     1010 = [100 / (1+ytm)]  + [100 / (1+ytm)^2] + [ 1100 / (1 + ytm)^3]    This can be solved by trial and error method s.t. ytm = 9.601%. I wanted to find out how to solve this equation in R.     ## SOLUTION   Mr. Elisson had given me following wonderful solution   f.ytm<-function(ytm) 100 / (1+ytm)  +100 / ((1+ytm)^...
2010 Feb 01
4
'R' and 'Yield to Maturity'
Dear R helpers   I am calculating the 'Yield to Maturity' for the Bond with following characteristics.   Its a $1000 face value, 3 year bond with 10% annual coupon and is priced at 101. The yield to maturity can be calculated after solving the equation -   1010 = [100 / (1+ytm)]  + [100 / (1+ytm)^2] + [ 1100 / (1 + ytm)^3]   This can be solved by trial and error method s.t. ytm = 9.601%.   My query is (1) if there is any R package which will calcualte ytm or (2) is there any method in 'R' which can solve the above equation.   Thanking you all in advance   Regards...
2010 Jan 19
0
Macualay Duration code in a Functional Form - Please Help
# I have written this code in Notepad++ and copied here. ## ONS - PPA    Duration = function(par_value, coupon_rate, freq_coupon, tenure, ytm) { macaulay_duration  =   NULL modified_duration    =   NULL freq_coupon_new    =   NULL if(freq_coupon <= 0) {     freq_coupon_new = 365 } if(freq_coupon > 0 & freq_coupon <= 1) {     freq_coupon_new = 12 } if(freq_coupon > 1 & freq_coupon <= 2) {     freq_coupon_new...
2010 Jan 19
0
Macaulay Duration for Group
Dear R helpers   I have following csv file which is an input   id       par_value    coupon_rate     frequency_coupon   tenure    ytm   1            1000             10                      1                     5          12   # Here frequency_coupon is coded s.t. 0 means Daily compounding, 1 means monthly compouding, 2 means Quarterly, 3 means Half yearly and 4 means only once. Thus in the case the frequency_coupon = 1 means, t...
2010 Jan 20
2
Please Please Please Help me!!
...st wish to wish to use it for multiple data.)   I have defined a function (as given below) which helps me calculate Macaulay Duration and Modified Duration and its working fine with given set of data.   My Code -   ## ONS - PPA   duration = function(par_value, coupon_rate, frequency_copoun, tenure, ytm)   { macaulay_duration  =   NULL modified_duration    =   NULL freq_coupon_new    =   NULL   if(frequency_copoun <= 0) {     freq_coupon_new = 365 }   if(frequency_copoun > 0 & frequency_copoun <= 1) {     freq_coupon_new = 12 }   if(frequency_copoun > 1 & frequency_copoun &l...
2006 Oct 09
1
regarding bootstrapping
Hi All, Thanks for all your discussions which I read offline and enhance my knowledge. I just want to know how to make yield curve by bootstrapping using R. Please give me some subject-matter links and code links. Especially the Spot Yield Curve and YTM Curve. Sayonara With Smile & With Warm Regards :-) G a u r a v Y a d a v Senior Executive Officer, Economic Research & Surveillance Department, Clearing Corporation Of India Limited. Address: 5th, 6th, 7th Floor, Trade Wing 'C', Kamala City, S.B. Marg, Mumbai - 4...
2017 Nov 16
1
Yield-to-Maturity problem
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 searching CRAN, but be warned that you may get considerably more than you wished for. Some packages do look like they could be r...
2017 Nov 16
0
Yield-to-Maturity problem
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 coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom
2017 Nov 16
2
Yield-to-Maturity problem
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 tolerance (tol). Additionaly, for freely chosen T; -> s1, s2, s3, ..., sT I appreciate your help so much.
2020 Mar 26
0
[PATCH nbdkit 9/9] tests/old-plugins: Add plugin from nbdkit 1.18.2.
...;1dT#U%nxgv87m?~DrHgyM<Clg#T<FbHxV@oJMcp?ESy zQ5O3rud>-)B1cepo#deV5%CW&YX>q)9>X2%zCr{C@coEcnkyyv%)4w&zM|wQp9z}Z zciA~~2g(xneFyGzuZTL5*M^5sKTsKrdeX7+?(gAtm8%RB_|Q;j2(382Ch!Xxo~?`* zc=95W&r+@iPDQSN<hnx@6KIQA-$;6QA?M$2qf5LX#_J`2MLEZZ+34SLbGmAy-!14< zY;@&v&R=e$Z=ytm;<3|({qt<}mnt~_LL0q6=wD)^chgNDrO8HbDdO}yZ1mW8PVchO zHwirlZ1i$r=Swy^TWmm8x1BEfYuM-qgr4IzdW*2<q>Wxu%<WV}9<`5Go{e52^cUFZ z<zu;?VK#cp7*1Dh^d-WcA{%|4^h1=(A(+{kjbreGg)UfGm0_U|lgxm}Ep*jFKWU+V z%|f3i?7<XMF0#;Hig1KxG1bY^ZJ~=P#HtJnJzFvZ9=FhQE%cKXI`!Es!cJ<JKC<Ll z=yJ@cuE0Xa#5T(?3w...
2020 Mar 26
15
[PATCH nbdkit 0/9] Create libnbdkit.so
This creates libnbdkit.so as discussed in the following thread: https://www.redhat.com/archives/libguestfs/2020-March/thread.html#00203 test-delay-shutdown.sh fails for unclear reasons. This series starts by reverting "tests: Don't strand hung nbdkit processes" which is because several other tests fail randomly unless I revert this patch. I didn't investigate this yet so it