160 FOR Z=1 TO 7:LOCATE 5+Z,10:COLOR Z,0:PRINT Z;STRING$(25,219);:COLOR 7,0:PRINT TAB(45);:COLOR Z+8:PRINT USING "##";Z+8;:PRINT" ";STRING$(25,219):NEXT
165 COLOR 7,0:PRINT:PRINT TAB(15);:INPUT "ENTER your color choices for: FOREGROUND = ",CLR1
170 PRINT TAB(46);:INPUT "BACKGROUND = ",CLR2
175 PRINT TAB(50);:INPUT "BORDER = ",CLR3
180 IF CLR1=7 AND CLR2=0 AND CLR3=0 THEN SCRN=0 ELSE SCRN=1
185 SCREEN 0,SCRN,0:COLOR CLR1,CLR2,CLR3:PRINT
190 DEF SEG:PRINT "1.) Epson";TAB(15);"2.) IBM";TAB(28);"3.) Okidata";TAB(43);"4.) Prowriter";TAB(60);"5.) Other make";TAB(79)
195 PRINT TAB(20);:INPUT "Enter your printer make: ",PMAK:IF ABS(PMAK-3)>2 THEN BEEP:GOTO 195 ELSE PRINT
200 PRINT TAB(15);:INPUT "Is your printer (A) 10, or (B) 15 inches wide? ",A$
205 IF A$="A" THEN PRNT=80 ELSE IF A$="B" THEN PRNT=132 ELSE BEEP:GOTO 200
210 PRINT TAB(6);:INPUT "Do you want (1) pica, (2) elite or (3) compressed type? ",AD:IF ABS(AD-2)>1 THEN BEEP:GOTO 210
215 IF PMAK <5 THEN 235 ELSE PRINT " Enter your printer's BASIC codes for ";:RESTORE 240:FOR Z=1 TO AD:READ D,XF:NEXT:PRINT D;" type:"
220 AR=CSRLIN:PRINT:LOCATE 24,5:PRINT "Enter CHR$()'s by pressing <Alt> and entering NUMBER on numeric keypad.";:LOCATE 25,19:PRINT "Press <Enter> when complete code entered.";
225 LOCATE AR-1,9,1:PRINT " ASCII CODE: ";
230 A$=INKEY$:IF A$="" THEN 230 ELSE IF A$=CHR$(13) THEN TYP$=DT:GOTO 250 ELSE DT=DT+A$:PRINT ASC(A$);:GOTO 230
235 RESTORE 245:FOR Z=1 TO (PMAK-1)*3+AD:READ XF,A1,A2:NEXT
240 DATA "pica",1,"elite",1.2,"compressed",1.7
245 DATA 1,27,64,1.2,27,77,1.7,15,0,1,27,64,1.2,27,77,1.7,15,0,1,24,0,1.2,28,0,1.7,29,0,1,27,78,1.2,27,69,1.7,27,81
415 LOCATE 24,5:PRINT "*Starred programs can evaluate data entered and saved using DATA-ONE.";:GOTO 740
420 CLS:PRINT TAB(22);"DETERMINING THE BEST STATISTICAL TEST":PRINT TAB(22);STRING$(37,205)
425 LOCATE 5,5:PRINT "Do you want to consider:":PRINT
430 PRINT TAB(24);"1.) Tests for a single sample":PRINT
435 PRINT TAB(24);"2.) Tests for 2 or more samples":PRINT
440 PRINT TAB(24);"3.) Other statistical functions":PRINT
445 PRINT TAB(24);"4.) Data handling utilities":PRINT
450 PRINT TAB(24);"5.) Return to main menu"
455 LOCATE 18,29:INPUT "Enter choice: ",ASUB:IF ABS(ASUB-3)>2 THEN BEEP:GOTO 455
460 CLS:ON ASUB GOTO 465,495,605,635,280
465 PRINT TAB(28);"TESTS FOR A SINGLE SAMPLE":PRINT
470 PRINT "The following tests compare an observed number":PRINT TAB(37);"to the expected (population) rate:":PRINT:PRINT
475 PRINT "[BINOMIAL]: The Binomial distribution applies when a dichotomous variable":PRINT TAB(14);"has an equal probability of occurring on each of N trials.":PRINT
480 PRINT "[NORMAL] : The Normal distribution applies to continuous and dichotomous": PRINT TAB(14);"variables when the sample size is >30 and normally distributed."
485 PRINT TAB(14);"Specifically used when comparing a sample mean with a": PRINT TAB(14);"population mean.":PRINT
490 PRINT "[POISSON] : The Poisson distribution applies when a dichotomous variable":PRINT TAB(14);"has a known probability of occurring on each trial,":PRINT TAB(14);"but the number of trials is not known.":GOTO 750
495 PRINT TAB(27);"TESTS FOR TWO OR MORE SAMPLES":PRINT
500 INPUT "Is the variable under consideration probably normally distributed? (Y or N) ",A$
505 IF A$="Y" OR A$="y" THEN 530 ELSE IF A$="N" OR A$="n" THEN 510 ELSE BEEP:GOTO 500
510 PRINT:PRINT:PRINT "[RANKTEST]: The Signed Rank Test compares the medians of paired samples."
515 PRINT TAB(15);"The Rank Sum Test compares the medians of independent samples.":PRINT
520 PRINT "[CORRELAT]: Includes Spearman's Rank Correlation":PRINT
525 PRINT:PRINT " (NOTE: Both the T-TEST and ANOVA usually can be safely applied to":PRINT TAB(9);"nonparametric data sets that contain more than 30 observations/sample.":GOTO 750
535 PRINT TAB(12);:INPUT"Are these samples paired (P) or independent (I)? ",A$
540 IF A$="P" OR A$="p" THEN 545 ELSE IF A$="i" OR A$="I" THEN 575 ELSE BEEP:GOTO 535
545 PRINT:PRINT "[ANOVA] : TWO-WAY Analysis of Variance evaluates the combined effects":PRINT TAB(14);"of two variables on a third (ROW and COLUMN effects)"
550 PRINT:PRINT "[CORRELAT]: Includes Pearson's correlation coefficient.":PRINT
555 PRINT "[LNREGRES]: Linear Regression analysis evaluates linear association.":PRINT
560 PRINT "[MCNEMAR] : McNemar's test compares paired dichotomous variables.":PRINT
565 PRINT "[MHCHIMLT]: Mantel-Haenszel Chi-square for multiple controls compares":PRINT TAB(14);"dichotomous variables with several controls per case.":PRINT
570 PRINT "[T-TEST] : The paired T-Test compares means of continuous variables.":GOTO 750
575 PRINT:PRINT "[ANOVA] : ONE-WAY Analysis of Variance compares the means of":PRINT TAB(14);"3 or more samples."
580 PRINT TAB(14);"TWO-WAY Analysis of Variance evaluates the combined effects":PRINT TAB(14);"of 2 variables on a third variable.":PRINT
585 PRINT "[CHISQR] : Chi-square Test compares discrete variables when":PRINT TAB(14);"the expected value for each cell is > 5.":PRINT
590 PRINT "[FISHERS] : Fisher's Exact Test compares dichotomous variables.":PRINT
595 PRINT "[MHCHISQR]: Mantel-Haenszel Chi-square Test compares a dichotomous":PRINT TAB(14);"variable while controlling for another factor.":PRINT
600 PRINT "[T-TEST] : The unpaired T-Test compares the means of continuous variables.":GOTO 750
700 PRINT "Or select the program number below:":PRINT
705 RESTORE 730:FOR Z=1 TO 10:LOCATE Z+10,10:READ D:PRINT Z;D:NEXT
710 FOR Z=11 TO 20:LOCATE Z,30:READ D:PRINT Z;D:NEXT
715 FOR Z=21 TO 25:LOCATE Z-10,50:READ D:PRINT Z;D:NEXT
720 LOCATE 25,16:INPUT;"Enter choice (Press RETURN to exit): ",AD
725 IF AD>0 AND AD<26 THEN RESTORE 730:FOR Z=1 TO AD:READ D:NEXT:RUN D
730 DATA "EPISTAT","DATA-ONE","ANOVA","BAYES","BINOMIAL","CHISQR","CORRELAT","FILETRAN","FISHERS","FORTRANS","HISTOGRM","LNREGRES","MHCHISQR","MHCHIMLT"
735 DATA "MCNEMAR","NORMAL","POISSON","RANDOMIZ","RANKTEST","RATEADJ","SAMPLSIZ","SCATRGRM","SELECT","T-TEST","XTAB"
737 LOCATE 23,1:SYSTEM
740 LOCATE 25,20:PRINT"Press any key to return to main menu:";
745 A$=INKEY$:IF A$="" THEN 745 ELSE 280
750 LOCATE 25,20:PRINT "Press space bar to return to menu:";
755 A$=INKEY$:IF A$=CHR$(32) THEN 420 ELSE 755
760 BEEP:IF ERR<>71 AND ERR<>70 AND ERR<>53 THEN 770 ELSE LOCATE 2,10:PRINT "Please place EPISTAT in drive A: (or other default).":PRINT TAB(25);"Press any key to continue:"