Instructions for using p-values-2sample+trend.exe

 

This program tests both two sample hypothesis with 2 groups and

tests for trend with 3 or more groups. In each instance the Skovgaard

saddlepoint approximation and the normal approximation are computed for the

following tests:

 

log-rank (lgr)

Gehan (Ghn)

generalized Wilcoxon (Gwl)

Tarone-Ware (Twr)

Harrington-Fleming (Hrf).

 

The output results are written to the file “reslt.txt”.

 

The data are input using the file "data.txt" that should be placed in the same directory as the executable file. The

list of data at the bottom shows a trend test example with data from 3 groups having n=29, n1=10, n2=10 and n3=9.

 

The format for data entry is as follows:

 

Each row holds data for one patient and patients are ordered according to time of death/censoring.

 

Each line has the following 4 entries:

 

time (space) indicator of death (space) group number (1,2,3,..) (space)

{1 for censored, 1 for untied death, # of deaths at that time if this is the first patient tied at

that time point, 0 if it is not the first tied death point}

 

Note: For ties involving both deaths and censored values, increment the censored times by a small amount,

like 10**(-10), and place them after the death times.

 

Upon execution of the file, the user will be asked to enter the values when so prompted:

 

enter total number of points

29

enter number of groups

3

enter number of points in group 1

10

enter number of points in group 2

10

enter number of points in group 3

9

 

 

 

Happy Trails!

 

 

 

Data entry for file data.txt

 

1 0 1 1

2 0 1 1

3 0 2 1

4 0 2 1

5 0 2 1

6 1 1 1

7 0 1 1

8 0 1 1

9 1 1 2

9 1 1 0

10 1 1 2

10 1 2 0

13 0 2 1

14 0 3 1

15 0 3 1

16 0 3 1

17 1 3 1

18 1 3 1

19 0 3 1

20 1 3 1

21 0 1 1

22 1 1 1

23 1 2 1

24 1 2 1

25 1 2 1

26 1 2 1

27 1 2 2

27 1 3 0

29 0 3 1