Usage and Installation of the Function qs() for R
The function qs() performs exact conditional goodness
of fit tests for quasi-symmetry in square contingency tables as described
by Booth Capanu and Heigenhauser (2003): 'Exact conditional p-value calculation for
the quasi-symmetry model'.
This page provides all necessary information to run qs()
on Unix systems. Users of any other OS can find directions for running
C-code from R in chapter 4 of the 'Writing R Extensions' manual that can
be downloaded from Cran at http://cran.us.r-project.org/doc/manuals/R-exts.pdf
.
Installation
-
Download qs.r and qs.c
to your computer, e.g. to the directory /home/usr/ .
-
Create a shared library qs.so in this directory with the
command:
R CMD SHLIB -o /home/usr/qs.so /home/usr/qs.c .
-
Start R and source qs.r with the command:
source("/home/usr/qs.r") .
-
Dynamically load the previous created library with the command:
dyn.load("/home/usr/qs.so") .
Usage
-
A help file is available in the pdf-format: qshelp.pdf.
-
The file example.r shows how to do
the computations for two examples used in the article by Booth, Capanu and Heigenhauser.
If you have any problems or suggestions concerning this function
do not hesitate to contact the author.
Ludwig Heigenhauser,
University of Florida, August 2003