SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.

I want to create/use a function which takes ballon payment in the end period to give EMIs. For example, a loan at 4% annually of 1000 for 12 months with a balloon payment of 100 at the end will have an EMI of 76.97. An equivalent to Excel formula = PMT(RATE,N,PV,[FV],[type]). There is an option in Excel of FV which doesn't seem to be in SAS function PMT.

 

Any help is deeply appreciated.

 

(P.S. - PROC LOAN is not an option as it takes too much time to calculate it for each row)

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

@thepushkarsingh wrote:

I want to create/use a function which takes ballon payment in the end period to give EMIs. For example, a loan at 4% annually of 1000 for 12 months with a balloon payment of 100 at the end will have an EMI of 76.97. An equivalent to Excel formula = PMT(RATE,N,PV,[FV],[type]). There is an option in Excel of FV which doesn't seem to be in SAS function PMT.

 

Any help is deeply appreciated.

 

(P.S. - PROC LOAN is not an option as it takes too much time to calculate it for each row)


The FINANCE functions PMT and PPMT both have FV as options.

 

FINANCE('PMT', rate, nper, pv, <fv>, <type>); 

FINANCE('PPMT', rate, period, nper, pv, <fv>, <type>); 

View solution in original post

2 REPLIES 2
ballardw
Super User

@thepushkarsingh wrote:

I want to create/use a function which takes ballon payment in the end period to give EMIs. For example, a loan at 4% annually of 1000 for 12 months with a balloon payment of 100 at the end will have an EMI of 76.97. An equivalent to Excel formula = PMT(RATE,N,PV,[FV],[type]). There is an option in Excel of FV which doesn't seem to be in SAS function PMT.

 

Any help is deeply appreciated.

 

(P.S. - PROC LOAN is not an option as it takes too much time to calculate it for each row)


The FINANCE functions PMT and PPMT both have FV as options.

 

FINANCE('PMT', rate, nper, pv, <fv>, <type>); 

FINANCE('PPMT', rate, period, nper, pv, <fv>, <type>); 
thepushkarsingh
Quartz | Level 8
Thank you very much! There's so much to know in SAS.

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
  • 2 replies
  • 1093 views
  • 2 likes
  • 2 in conversation