Readme file

SERIES B
Statistical Methodology

A two-stage procedure for comparing hazard rate functions,
P. Qiu and J. Sheng
volume 70 (2008), 191–208

The directory has eight files. They are briefly described below.

two-stage32.r --- R code to apply the proposed two-stage procedure to the rat data discussed in the paper, used on a 32-bit computer running Linux/Unix.

two-stage64.r --- R code to apply the proposed two-stage procedure to the rat data discussed in the paper, used on a 64-bit computer running Linux/Unix.

two-stage32.so --- Compiled Fortran-77 subroutine needed to run two-stage.r on a 32-bit computer running Linux/Unix.

two-stage64.so --- Compiled Fortran-77 subroutine needed to run two-stage.r on a 64-bit computer running Linux/Unix.

rats.txt --- Text file of the rat data.

main.f --- Main Fortran-77 code to apply the proposed two-stage procedure to the rat data.

two-stage.f --- Fortran-77 subroutine needed to run main.f.

makefile --- A makefile for compiling the fortran codes on
a UNIX/LINUX computer.

Several Remarks for Using the Code:

  1. The code is for applying the two-stage procedure that is discussed in the paper to a real dataset, which should be saved in a text file with three columns: observation times, censoring status (0 or 1), and group index (0 or 1). See the documents in the above R or Fortran codes for more information.
  2. If you want to run R code on a 32-bit Linux/Unix computer, then you need to download the following files: two-stage32.r, two-stage32.so, and rats.txt. All these files should be put in the same directory.
  3. If you want to run R codeson a 64-bit Linux/Unix computer, then you need to download the following files: two-stage64.r, two-stage64.so, and rats.txt. All these files should be put in the same directory.
  4. To tell whether your machine is a 32-bit or a 64-bit machine, use the Linux/Unix command "arch".
    For instance,
    % arch
    i686
    is what you see on a 32-bit machine, and
    % arch
    x86_64
    is what you see on a 64-bit machine.
  5. If you want to run R code on a PC running Windows, then you need to download the source Fortran code two-stage.f and then compile it on your machine. Then you can download files two-stage32.r and rats.txt, and change the folloing line
    dyn.load("two-stage32.so")
    in the file two-stage32.r properly to run that file. We am not familiar with Windows. So, we do not the know the details about the compilation.
  6. If you want to run Fortran-77 code, then you need to download the following files: main.f, two-stage.f, and rats.txt. You need to compile the two Fortran-77 codes properly. The makefile file provided here is for compiling the Fortran-77 codes on a UNIX/LINUX computer.

Visit http://www.stat.umn.edu/~qiu/research/software/twostage/ for more recent information about the computer code related to this paper.

R package 'TSHRC' can be downloaded from the R web page at
http://cran.r-project.org/ under the link 'Packages' on the left-hand side of that page.

Peihua Qiu
School of Statistics
University of Minnesota
313 Ford Hall
224 Church Street SE
Minneapolis
MN 55455
USA

E-mail: qiu@stat.umn.edu


Journals

SERIES A
Statistics in Society

SERIES B
Statistical Methodology

SERIES C
Applied Statistics

SERIES D
The Statistician