Statistics for Bayesian inference for linear and nonlinear functions of Poisson and binomial rates