In this case study, we demonstrate how Stan’s segment function can speed computation on sparse matrices of pairwise neighbors in plant-plant interaction models. In addition, we present solutions to common problems of fitting neighborhood models with hierarchical effects, including a comparison of centered vs. non-centered parameterizations.
View (HTML)
Authors : Cristina Barber, Andrii Zaiats, Cara Applestein, Lisa Rosenthal and T.Trevor Caughlin
Keywords : plants, neighbor interactions, sparse matrix, segment function
Source Repository : Cristinabarber/Neighbor_Interactions (GitHub)
R Package Dependencies : rstan
License : BSD (3 clause), CC BY NC