Methods for spatial hierarchical generalized linear mixed models