Moment-Based Estimation for Hierarchical Models