Logistic, Loop, 840 appendix a: functions and instructions – Texas Instruments TITANIUM TI-89 User Manual

Page 840

Advertising
background image

840

Appendix A: Functions and Instructions

Logistic

MATH/Statistics/Regressions menu

Logistic

list1

,

list2

[

, [

iterations

]

, [

list3

] [,

list4

,

list5

]

]

Calculates the logistic regression and updates all
the system statistics variables.

All the lists must have equal dimensions except
for

list5

.

list1

represents xlist.

list2

represents ylist.

list3

represents frequency.

list4

represents category codes.

list5

represents category include list.

iterations

specifies the maximum number of times

a solution will be attempted. If omitted, 64 is
used. Typically, larger values result in better
accuracy but longer execution times, and vice
versa.

Note:

list1

through

list4

must be a variable name

or c1–c99 (columns in the last data variable
shown in the Data/Matrix Editor).

list5

does not

have to be a variable name and cannot be c1–c99
.

In function graphing mode:

{1,2,3,4,5,6}!L1 ¸

{1 2 3 …}

{1,1.3,2.5,3.5,4.5,4.8}!L2
¸

{1 1.3 2.5 …}

Logistic L1,L2 ¸ Done

ShowStat ¸

¸

regeq(x)!y1(x) ¸ Done

NewPlot 1,1,L1,L2 ¸ Done
¥%

9

Loop

CATALOG

Loop

block

EndLoop

Repeatedly executes the statements in

block

. Note

that the loop will be executed endlessly, unless a

Goto

or

Exit

instruction is executed within

block

.

block

is a sequence of statements separated with

the “:” character.

Program segment:

©

:1! i

:Loop

: Rand(6)! die1

: Rand(6)! die2

: If die1=6 and die2=6

: Goto End

: i+1! i

:EndLoop

:Lbl End

:Disp "The number of rolls is", i

©

Advertising