This function estimates the dominance effect of a genetic variant on a quantitatvie trait
Nothing fancy here. We apply a simple linear regression model to estimate dominance effects.
We include a linear term, coded as 0,1 and 2 for non-carriers, heterozygotes and homozygous carriers of the effect allele.
We also include a dominance term, coded as 1 for homozygous carriers and 0 for others.
Effect size and significance is based on the dominance term.