50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

bondAnalyst (version 1.0.1)

pricingQtrlyCpnBond: Calculates Present Value or the Price of the Bond paying Quarterly Coupons.

Description

Calculates Present Value or the Price of the Bond paying Quarterly Coupons.

Usage

pricingQtrlyCpnBond(qCoupons, times, mv, n, r)

Value

Input values to five arguments qCoupons , times, mv,n and r.

Arguments

qCoupons

A vector.

times

A vector.

mv

A number.

n

A number.

r

A number.

Author

MaheshP Kumar, maheshparamjitkumar@gmail.com

Details

The method pricingQtrlyCpnBond() is developed to compute the Price of Bond making quarterly Coupon Payments. So, pricingQtrlyCpnBond() gives the Price of Bond making quarterly Coupon Payments for values passed to its five arguments. Here, qCoupons represents the dollar values of all the quarterly coupon payments till maturity, times is a vector of number of years ranging from 1 to any specified number of quarterly periods till maturity, that is from 1 to times(n * 4), mv is Maturity Value, n is number of years till maturity, and r is annual Market Discount Rate or Required Rate of return. The output is rounded off to two decimal places. The given examples show various ways in which the arguments can be passed to pricingQtrlyCpnBond().

References

Adams,J.F. & Smith,D.J.(2019). Introduction to fixed-income valuation. In CFA Program Curriculum 2020 Level I Volumes 1-6. (Vol. 5, pp. 107-151). Wiley Professional Development (P&T). ISBN 9781119593577, https://bookshelf.vitalsource.com/books/9781119593577

Examples

Run this code
pricingQtrlyCpnBond(qCoupons=c(2,2,2,2,2,2,2,2), times=c(1,2,3,4,5,6,7,8) ,mv=100,n=2,r=0.06)
pricingQtrlyCpnBond(qCoupons=c(2,2,2,2,2,2,2,2), times=c(1:8) ,mv=100,n=2,r=0.06)
pricingQtrlyCpnBond(qCoupons=c(rep(2,8)), times=c(1:8) ,mv=100,n=2,r=0.06)
pricingQtrlyCpnBond(c(rep(2,8)), c(1:8) ,100,2,0.06)

Run the code above in your browser using DataLab