SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
Ocean_my
Calcite | Level 5

Hi, Please i need help, i would like to calculate the Z-spread(zero volatilité spread) of coupon bond.
Input(known variable) :

Price of the Bond = 102.3

Coupon = 3%

Frequency : Annuel

Date of maturity = 15/12/2024.

Yield Curve: Year 1 =0.1, Year 2 =0.2, Year 3 =0.4,  Year 4 = 0.5.

The formula is : 102.3= 3/(1+0.1+SP)^1+3/(1+0.2+SP)^2+3/(1+0.4+SP)^3+3/(1+0.5+SP)^4+100/(1+0.5+SP)^4.

With the function Solve, i would like to find SP(Z-spread).

Thank you for your help.

Samy

1 REPLY 1
Ocean_my
Calcite | Level 5

Price Bond = Coupon/(1+Rate(1)+Spread)^1+ Coupon/(1+Rate(2)+Spread)^2+ Coupon/(1+Rate(N)+Spread)^N+ Principal/(1+Rate(N)+Spread)^N

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 806 views
  • 0 likes
  • 1 in conversation