R code for paper: Hickey, P. F. & Bahlo, M. "X chromosome association testing in genome wide association studies". Genet. Epidemiol. 35, 664–670 (2011).