A Bayesian Model for the Analysis of Transgenerational Epigenetic Variation