Methods For Analysis Of Genetic Differences In Sex And Ethnicity For Complex Human Traits