Estimating genetic effect sizes under joint disease-endophenotype models in presence of gene-environment interactions.