A unified GMDR method for detecting gene-gene interactions in family and unrelated samples with application to nicotine dependence