1! Program GEN7A.BAS Version 1 June, 1976
This is the data generator for Unit 7A: Hierarchical Groups,
Transitivity
2! Department of Psychology
Lawrence University
Appleton, Wisconsin, 54911
(414) 739-3681, Ext. 464
3! Copyright (C) 1975, 1976 by Francis Campos. General
permission to copy or modify, but not for profit, all or part of
this document or the software described herein is hereby
4! granted, provided that this copyright notice is given, and
reference is made to the fact that reproduction privileges were
granted by permission of Francis Campos, Lawrence University.
5! Although every effort has been made to insure the accuracy and
usefulness of this document and the software described herein,
neither the author(s), Lawrence University, nor its funding
6! sources make any warranty, expressed or implied, with respect to
the performance or features of same on equipment which Lawrence
neither owns nor controls.
7! This program is one of the twenty-one BASIC-PLUS programs and
eighteen virtual core files that comprise the CASANOVA
package for Computer ASsisted instruction in ANalysis Of
8! VAriance. The package is coded for use on a PDP 11/40, 45 or 70
computer operating under RSTS/E, V6A-02. Those who wish to adapt
the package to other systems and/or programming languages are
9! urged to consult the BASIC-PLUS Language Manual, published by the
Digital Equipment Corporation, Maynard, Massachusetts, 01754,
as well as the Instructor's Manual for CASANOVA, provided by Lawrence.
105 RANDOMIZE
110 N=2: A=3: G=3
115 &:INPUT"WHAT IS YOUR NAME";Z1$
120 Z1$=Z1$+".XDS"
125 OPEN Z1$ AS FILE 1
130 Q=9
135 DIM #1, A2(16),A2$(2)
140 DIM A(9),D(9,4),T(3,3),X(3),P(3,3)
145 A2(0)=9: A2$(1)="7A"
150 A2$(0)=""
155 GOTO 500
160 A2(I)=A(I) FOR I=1 TO Q
165 CLOSE 1
170 CHAIN "INTXSM"
500 FOR J=1 TO G: FOR K=1 TO A
510 READ P(J,K)
520 NEXT K: NEXT J
530 DATA .5,.7,.8,.5,.7,.8,.5,.7,.8
540 FOR I=1 TO N: FOR J=1 TO G: FOR K=1 TO A
545 X=0
550 FOR L=1 TO 18
560 IF RND>P(J,K) THEN 580
570 X=X+1
580 NEXT L
600 D(A*(J-1)+K,I)=X
610 T=T+X
620 T2=T2+X^2
630 T(J,K)=T(J,K)+X
640 X(K)=X(K)+X
650 NEXT K: NEXT J: NEXT I
660 A(1)=T^2/A/G/N
670 A(2)=T2-A(1)
675 X=0
680 FOR J=1 TO G: FOR K=1 TO A
690 X=X+T(J,K)^2
700 NEXT K: NEXT J
710 A(3)=(X/N)-A(1)
715 X=0
720 X=X+X(K)^2 FOR K=1 TO A
730 A(4)=(X/G/N)-A(1)
740 A(5)=A(3)-A(4)
750 A(6)=A(2)-A(3)
755 X=A(5)/(A*(G-1))
760 A(7)=(A(4)/(A-1))/X
770 Y=A(6)/A/G/(N-1)
780 A(8)=X/Y
800 &:&,"A1","A2","A3"
810 PRINT: FOR J=1 TO G
820 &"GROUP";J,D(A*(J-1)+1,I),D(A*(J-1)+2,I),D(A*(J-1)+3,I)FORI=1TON
830 PRINT
840 NEXT J
9998 GOTO 160
9999 END