TY - JOUR
T1 - Using Hamiltonian Monte Carlo via Stan to estimate crop input response functions with stochastic plateaus
AU - Ng'ombe, John
AU - Lambert, Dayton M.
PY - 2021
Y1 - 2021
N2 - Bayesian analysis provides a principled way to quantify uncertainty and incorporate data and prior knowledge into parameter estimates. This paper makes the latest in Bayesian methods easier for others to use with a focus on a stochastic plateau crop production function. Previous studies have used Bayesian techniques to model stochastic plateau functions. No published work provides computation guidelines to estimate stochastic plateau functions using Bayesian approaches using computationally efficient algorithms such as Hamiltonian Monte Carlo (HMC). HMC is the default choice in Stan software, but the learning curve to master the software is steep. We provide HMC estimation instructions for a univariate stochastic plateau function using the R environment's brms and RStan. We also compare HMC estimation results with those using Gibbs sampling via Just Another Gibbs Sampler (JAGS) software using the R Interface R2jags. The programs are relatively compact and are included in the paper. Simulation results from HMC are consistent across different priors and are similar to those generated by a Gibbs sampler. This paper serves as a tutorial on the use of HMC for estimating plateau-type production functions. The code, and method, can be extended to other nonlinear models.
AB - Bayesian analysis provides a principled way to quantify uncertainty and incorporate data and prior knowledge into parameter estimates. This paper makes the latest in Bayesian methods easier for others to use with a focus on a stochastic plateau crop production function. Previous studies have used Bayesian techniques to model stochastic plateau functions. No published work provides computation guidelines to estimate stochastic plateau functions using Bayesian approaches using computationally efficient algorithms such as Hamiltonian Monte Carlo (HMC). HMC is the default choice in Stan software, but the learning curve to master the software is steep. We provide HMC estimation instructions for a univariate stochastic plateau function using the R environment's brms and RStan. We also compare HMC estimation results with those using Gibbs sampling via Just Another Gibbs Sampler (JAGS) software using the R Interface R2jags. The programs are relatively compact and are included in the paper. Simulation results from HMC are consistent across different priors and are similar to those generated by a Gibbs sampler. This paper serves as a tutorial on the use of HMC for estimating plateau-type production functions. The code, and method, can be extended to other nonlinear models.
UR - https://dx.doi.org/10.1016/j.jafr.2021.100226
U2 - 10.1016/j.jafr.2021.100226
DO - 10.1016/j.jafr.2021.100226
M3 - Article
VL - 6
JO - Journal of Agriculture and Food Research
JF - Journal of Agriculture and Food Research
IS - Issue
ER -