Simultaneous Estimation of Haplotype Frequencies and Quantitative Trait Parameters