R code for paper: Hickey, P. F. and Bahlo, M. X chromosome association testing in genome wide association studies. Genet Epidemiol. 2011 Nov;35(7):664-70. doi: 10.1002/gepi.20616. Epub 2011 Aug 4