Getting Started Example for PROC LOAN

/*--------------------------------------------------------------

                    SAS Sample Library

        Name: loags.sas
 Description: Example program from SAS/ETS User's Guide,
              The LOAN Procedure
       Title: Getting Started Example for PROC LOAN
     Product: SAS/ETS Software
        Keys: fixed rate, adjustable rate, buydown,
              and balloon payment loans
        PROC: LOAN
       Notes:

--------------------------------------------------------------*/

proc loan start=1998:12;
   fixed amount=100000 rate=7.5 life=180
         label='BANK1, Fixed Rate';
run;

proc loan start=1998:12;
   balloon amount=100000 rate=7.5 life=180
           balloonpayment=(15=2000 48=1000)
           label = 'BANK2, with Balloon Payment';
run;

proc loan start=1998:12;
   arm amount=100000 rate=5.5 life=180 worstcase
       caps=(0.5, 2.5)
       label='BANK3, Adjustable Rate';
run;

proc loan start=1998:12;
   buydown amount=100000 rate=6.5 life=180
           buydownrates=(24=8 48=9) pointpct=1
           label='BANK4, Buydown';
run;

proc loan start=1998:12;
   fixed amount=100000 rate=7.5 life=180
         schedule=1
         label='BANK1, Fixed Rate';
run;

proc loan start=1998:12;
   buydown amount=100000 rate=6.5 life=180
           buydownrates=(24=8 48=9) pointpct=1
           schedule=yearly
           label='BANK4, Buydown';
run;

proc loan start=1998:12 amount=120000;
   fixed rate=7.5 life=360 label='30 year loan';
   fixed rate=6.5 life=180 label='15 year loan';
   compare;
run;

proc loan start=1998:12 amount=120000 life=360;
   fixed rate=7.5 label='BANK1, Fixed Rate';
   arm   rate=6.0 worstcase caps=(0.5 2.5)
         label='BANK3, Adjustable Rate';
   compare taxrate=28 at=(60 120);
run;