|
skewers Contents1. Getting started 2. Running skewers 3. The output 4. References and further reading 5. Contact information 7. Appendix - updates Getting StartedIntroduction Skewers is a program for the calculation and hypothesis testing of the mean random skewers matrix correlation following Cheverud et al. (1983) and especially Cheverud (1996). Random skewers tests for significant similarity between two matrices - generally covariance matrices. The random skewers method of Cheverud (1996) involves the calculation of the mean vector correlation of the response to random selection vectors applied to both matrices. In other words, for two matrices, A and B, and n random vectors, β1 through βn:
where
indicates that a vector correlation is calculated. Hypothesis testing of the mean vector correlation is conducted by comparing it to the distribution of correlations between many pairs of random vectors. Installation - Linux/UNIX The source, this manual, all available executables, and an example data file are available as a zipped tarball skewers.tar.gz. To install in Linux/UNIX, download the source skewers.c to your programs directory or other appropriate directory, e.g., /home/your_user_name/programs/skewers/skewers.c.
To compile, type the following command: Installation - Windows Unfortunately, skewers is not a real Windows program. However it has been compiled for Windows and can be executed from the Command Prompt in Windows or by double-clicking on the executable. Most Windows installations do not come packaged with a compiler, so I'm distributing the executable and hopefully that will work on your system (it should). The link to that executable is here. If you'd like to download a compiler to compile skewers from source in Windows, I recommend MinGW. Running skewersInput file formatInput files should be created as plain text which can be accomplished in Linux by using a text editor such as gedit or in Windows by using WordPad and saving in Save as Type: Text Document Format. Many people will be using Microsoft excel for data compilation - in which you should save as 'tab delimited text.' The input file format is as follows: NOTE ON FILE FORMAT- This program will probably be finicky about file format, so be careful to follow the format presented herein and the format of the example data file available with skewers. Running skewers
Running skewers is easy. In Windows XP, you should be able to run the executable skewers.exe simply by double clicking on it. If you'd prefer, you can also run it from the command prompt. The easiest way to get a command prompt in XP is to open a RUN window and enter:
To run in Linux/UNIX navigate to the appropriate directory and type: From here on out execution in Linux/UNIX and Windows are identical, so I will follow execution in Linux/UNIX. The program will give you several prompts: The skewers outputThe general output from skewers is printed to an output file and to the screen (for a number of matrices fewer than four) and looks as follows: ReferencesContact informationPlease contact me by email with any questions, or if you find the program useful. My email is lrevell@fas.harvard.edu, and my other contact information is listed below. Although I have thoroughly tested the program, I encourage users to do the same and I would be happy to hear about any bugs you might find. Liam J. Revell Appendix
Content copyright. Last updated 3 Apr. 2007. |