The LOAN Procedure

Example 22.4 Output Data Sets

(View the complete code for this example.)

This example shows the analysis and comparison of five alternative loans. Initialization cost, discount points, and both lump sum and periodic payments are included in the specification of these loans. Although no printed output is produced, the loan summary and loan comparison information is stored in the OUTSUM= and OUTCOMP= data sets.

proc loan start=1998:12 noprint outsum=loans
   amount=150000 life=360;

   fixed rate=7.5 life=180 prepayment=500
         label='BANK1, Fixed Rate';

   arm rate=5.5 estimatedcase=(12=7.5 18=8)
       label='BANK1, Adjustable Rate';

   buydown rate=7 interval=semimonth init=15000
           bdrates=(3=9 10=10) label='BANK2, Buydown';

   arm rate=5.75 worstcase caps=(0.5 2.5)
       adjustfreq=6 label='BANK3, Adjustable Rate'
       prepayments=(12=2000 36=5000);

   balloon rate=7.5 life=480
       points=1100 balloonpayment=(15=2000 48=2000)
       label='BANK4, with Balloon Payment';

   compare at=(120 360) all marr=7 tax=33 outcomp=comp;
run;

proc print data=loans;
run;

proc print data=comp;
run;

Figure 16 and Figure 17 illustrate the contents of the output data sets.

Figure 16: OUTSUM= Data Set

ObsTYPELABELPAYMENTAMOUNTINITIALPOINTSTOTALINTERESTRATEEFFRATEINTERVALCOMPOUNDLIFENCOMPNDCOMPUTESTARTEND
1FIXEDBANK1, Fixed Rate1890.5215000000207839.4457839.440.07500.077633MONTHLYMONTHLY110110PAYMENTDEC1998FEB2008
2ARMBANK1, Adjustable Rate851.6815000000390325.49240325.490.05500.056408MONTHLYMONTHLY360360PAYMENTDEC1998DEC2028
3BUYDOWNBANK2, Buydown673.57150000150000288858.08138858.080.07000.072399SEMIMONTHLYSEMIMONTHLY360360PAYMENTDEC1998DEC2013
4ARMBANK3, Adjustable Rate875.3615000000387647.82237647.820.05750.059040MONTHLYMONTHLY360360PAYMENTDEC1998DEC2028
5BALLOONBANK4, with Balloon Payment965.3615000001100467372.31317372.310.07500.077633MONTHLYMONTHLY480480PAYMENTDEC1998DEC2038


Figure 17: OUTCOMP= Data Set

ObsDATETYPELABELPAYMENTINTERESTTRUERATEPWOFCOSTBALANCE
1DEC2008FIXEDBANK1, Fixed Rate1772.7657839.440.051424137741.070.00
2DEC2008ARMBANK1, Adjustable Rate1093.97108561.770.052212130397.88130788.65
3DEC2008BUYDOWNBANK2, Buydown803.98118182.190.087784161810.0075798.19
4DEC2008ARMBANK3, Adjustable Rate1065.18107015.580.053231131955.90125011.88
5DEC2008BALLOONBANK4, with Balloon Payment965.36107906.610.052107130242.56138063.41
6DEC2028FIXEDBANK1, Fixed Rate1772.7657839.440.051424137741.070.00
7DEC2028ARMBANK1, Adjustable Rate1094.01240325.490.053247121980.940.00
8DEC2028BUYDOWNBANK2, Buydown800.46138858.080.086079161536.440.00
9DEC2028ARMBANK3, Adjustable Rate1065.20237647.820.054528124700.220.00
10DEC2028BALLOONBANK4, with Balloon Payment965.36282855.860.051800117294.5081326.26


Last updated: December 20, 2021