You are on page 1of 5

GenStat Release 17.

1 ( PC/Windows 8) 05 October 2015 12:27:47


Copyright 2014, VSN International Ltd.
Registered to: Queen Mary and Westfield College
________________________________________
GenStat Seventeenth Edition
GenStat Procedure Library Release PL25.1
________________________________________
1
2
3
4
5
6

SET [WORKINGDIRECTORY='G:/Documents']
"Data taken from unsaved spreadsheet: New Data;1"
DELETE [REDEFINE=yes] C1,C2,C3
UNITS [NVALUES=*]
VARIATE [NVALUES=8] C1
READ C1
Identifier
C1

8
9

Maximum
*

Values
8

Missing
8

Minimum
*

Mean
*

Maximum
*

Values
8

Missing
8

Mean
*

Maximum
*

Values
8

Missing
8

VARIATE [NVALUES=8] C3
READ C3
Identifier
C3

14
15
16

Mean
*

VARIATE [NVALUES=8] C2
READ C2
Identifier
C2

11
12

Minimum
*

Minimum
*

%PostMessage 1129; 0; 100001 "Sheet Update Completed"


ENDJOB

End of job. Current data space: 1 block, peak usage 1% at line 15.

GenStat Release 17.1 ( PC/Windows 8) 05 October 2015 12:28:25


Copyright 2014, VSN International Ltd.
Registered to: Queen Mary and Westfield College
17
18
19
20
21

"Active Sheet set to Spreadsheet [Book;1]*"


"Data taken from unsaved spreadsheet: New Data;1"
UNITS [NVALUES=*]
VARIATE [NVALUES=8] C1
READ C1
Identifier
C1

23
24

Minimum
*

Mean
*

Maximum
*

Values
8

Missing
8

Minimum
*

Mean
*

Maximum
*

Values
8

Missing
8

Minimum
1.000

Mean
4.500

Maximum
8.000

Values
8

Missing
0

Minimum
398.0

Mean
459.0

Maximum
492.0

Values
8

Missing
0

VARIATE [NVALUES=8] Diseased; DECIMALS=0; EXTRA='Diseased Eye '


READ Diseased
Identifier
Diseased

43
44
45

Missing
8

VARIATE [NVALUES=8] Normal; DECIMALS=0; EXTRA='Normal Eye'


READ Normal
Identifier
Normal

40
41

Values
8

%PostMessage 1129; 0; 100001 "Sheet Update Completed"


"Data taken from unsaved spreadsheet: New Data;1"
DELETE [REDEFINE=yes] Patient,Normal,Diseased
UNITS [NVALUES=*]
VARIATE [NVALUES=8] Patient; DECIMALS=0; EXTRA='Patient Number '
READ Patient
Identifier
Patient

37
38

Maximum
*

VARIATE [NVALUES=8] C3
READ C3
Identifier
C3

29
30
31
32
33
34
35

Mean
*

VARIATE [NVALUES=8] C2
READ C2
Identifier
C2

26
27

Minimum
*

Minimum
410.0

Mean
455.0

Maximum
488.0

Values
8

Missing
0

%PostMessage 1129; 0; 100001 "Sheet Update Completed"


PRINT patient, normal, diseased

Warning 1, code VA 4, statement 1 on line 45


Command: PRINT patient, normal, diseased
Values not set.
patient has no values.

Warning 2, code VA 4, statement 1 on line 45

Command: PRINT patient, normal, diseased


Values not set.
normal has no values.

Warning 3, code VA 4, statement 1 on line 45


Command: PRINT patient, normal, diseased
Values not set.
diseased has no values.
46

PRINT Patient, Normal, Diseased


Patient
1
2
3
4
5
6
7
8

47
48

Diseased
488
478
480
426
440
410
458
460

X1
-4.000
0.000
12.000
18.000
-4.000
-12.000
6.000
16.000

PRINT Patient, Normal, Diseased


Patient
1
2
3
4
5
6
7
8

50
51

Diseased
488
478
480
426
440
410
458
460

calculate X1 = Normal - Diseased


print Normal, Diseased, X1
Normal
484
478
492
444
436
398
464
476

49

Normal
484
478
492
444
436
398
464
476

Normal
484
478
492
444
436
398
464
476

Diseased
488
478
480
426
440
410
458
460

calculate X1 = Normal - Diseased


print Normal, Diseased, X1
Normal
484
478
492
444
436
398
464
476

Diseased
488
478
480
426
440
410
458
460

X1
-4.000
0.000
12.000
18.000
-4.000
-12.000
6.000
16.000

52
53
54
55

FSPREADSHEET [SHEET=100001; METHOD=replace; NOUNITS=yes] X1


DELETE [REDEFINE=yes] X2
CALCULATE X2=Normal - Diseased
PRINT X2
X2
-4.000
0.000
12.000
18.000
-4.000
-12.000
6.000
16.000

56 FSPREADSHEET [SHEET=100001; METHOD=replace; NOUNITS=yes] X2


57 DSAVE 'C:/Users/ah12228/AppData/Local/Temp/Genstat/G171A12.GGD'
58 GET [ENVIRONMENT=_tempenv]
59 SET [CMETHOD=rgb]
60 FRAME [RESET=yes] WINDOW=1; XLOWER=0; XUPPER=0.75; YLOWER=0.25;
YUPPER=1; XMLOWER=0.12;\
61
XMUPPER=0.05; YMLOWER=0.1; YMUPPER=0.07; BOX=include
62 XAXIS [RESET=yes] WINDOW=1; TITLE='Normal'; TPOSITION=middle;
TDIRECTION=parallel;\
63
LPOSITION=outside; LDIRECTION=parallel; MPOSITION=outside;
ARROWHEAD=omit; ACTION=display;\
64
TRANSFORM=identity
65 YAXIS [RESET=yes] WINDOW=1; TITLE='Diseased'; TPOSITION=middle;
TDIRECTION=parallel;\
66
LPOSITION=outside; LDIRECTION=parallel; MPOSITION=outside;
ARROWHEAD=omit; ACTION=display;\
67
TRANSFORM=identity
68 PEN [RESET=yes] 1; METHOD=point; SYMBOL=1; CSYMBOL=0; SIZE=1
69 DGRAPH [WINDOW=1; TITLE='Normal and Diseased '] Y=Diseased; X=Normal
70 PEN [RESET=yes] 1
71 FRAME [RESET=yes] WINDOW=1
72 SET [CMETHOD=#_tempenv['cmethod']]
73 DLOAD 'C:/Users/ah12228/AppData/Local/Temp/Genstat/G171A12.GGD'
74 %PostMessage 1078; 0; 18
75 TTEST [PRINT=summary,test,confidence,variance; METHOD=greater;
CIPROB=0.95; VMETHOD=automatic;\
76
NTIMES=4999; SEED=0] Y1=Normal ; Y2=Diseased

Two-sample t-test
Variates: Normal, Diseased.

Test for equality of sample variances


Test statistic F = 1.28 on 7 and 7 d.f.
Probability (under null hypothesis of equal variances) = 0.75

Summary
Standard

Standard error

Sample
Normal
Diseased

Size
8
8

Mean
459.0
455.0

Difference of means:
Standard error of difference:

Variance
980.6
766.9

deviation
31.31
27.69

of mean
11.07
9.79

4.00
14.78

95% one-sided confidence interval for difference in means: (-22.03, ...)

Test of null hypothesis that mean of Normal is not greater than mean of
Diseased
Test statistic t = 0.27 on 14 d.f.
Probability = 0.395
77 TTEST [PRINT=summary,test,confidence,variance; METHOD=greater;
CIPROB=0.95; VMETHOD=automatic;\
78
NTIMES=4999; SEED=0] Y1=Normal ; Y2=Diseased

Two-sample t-test
Variates: Normal, Diseased.

Test for equality of sample variances


Test statistic F = 1.28 on 7 and 7 d.f.
Probability (under null hypothesis of equal variances) = 0.75

Summary
Sample
Normal
Diseased

Size
8
8

Difference of means:
Standard error of difference:

Mean
459.0
455.0

Variance
980.6
766.9

Standard
deviation
31.31
27.69

Standard error
of mean
11.07
9.79

4.00
14.78

95% one-sided confidence interval for difference in means: (-22.03, ...)

Test of null hypothesis that mean of Normal is not greater than mean of
Diseased
Test statistic t = 0.27 on 14 d.f.
Probability = 0.395

You might also like