Program Lines:

 

Description

(In RPN mode)

 

 

 



! 

Stores b in B.

 



#$ 

Displays value.

 



P

Calculates coefficient m.

 



! 

Stores m in M.

 

 #$ 

Displays value.

 

Checksum and length: 9CC9

36

 

&  &

Defines the beginning of the estimation (projection) loop.

& "! %

Displays, prompts for, and, if changed, stores x–value in X.

& %1L2

Calls subroutine to compute

yˆ .

&

! &

Stores yˆ –value in Y.

 

& "! &

Displays, prompts for, and, if changed, stores y–value in Y.

&



 

 

 

&

!- L

Adjusts index value to address the appropriate subroutine.

& %1L2

Calls subroutine to compute

xˆ .

&

! %

Stores xˆ

in X for next loop.

 

& ! &

Loops for another estimate.

 

Checksum and length: 9B34

42

 

  

This subroutine calculates yˆ for the straight–line model.

  

 

 

 

 º %Calculates yˆ = MX + B.

 

 - 

 

 !

Returns to the calling routine.

 

Checksum and length: F321

15

 

  

This subroutine calculates xˆ

for the straight–line model.



!. LRestores index value to its original value.

  &

 

 

 

 . 

Calculates xˆ =(Y B) M.

 

 ª 

 



!

Returns to the calling routine.

 

Checksum and length: 65AB

18

 

  

This subroutine calculates yˆ for the logarithmic model.

Statistics Programs 16–5