In previous post, I asked for helped with a hierarchical von Bertalanffy growth model.
I’ve turned example into an R package, available on the USGS git repository https://code.usgs.gov/umesc/fishStan. My R package currently includes a hierarchical von Bertalanffy growth model, a hierarchical logistic regression, and a hierarchical linear regression. All three models are adapted from Section 1.13 Multivariate Hierarchical Priors in the Stan user manual (the linear regression is almost an exact copy-and-paste). I’ve also include
generated quantities that calculates the curves/lines estimated by the model and the growth model also uses the estimated parameters to calculate natural mortality.
As a long term plan/hope, I would like to add helper functions and polish this package enough to get it on CRAN. Pull requests are welcome.