Hello all,
There is a growing interest in regression models with a latent Gaussian process in my field, and I was really happy to see the addition of more covariance kernels in brms, particularly ones which are useful for spatial and phylogenetic analysis, like Matern 3/2 and 1/2.
The main limitation of brms for both spatial and phylogenetic analysis is that there is no way, to my knowledge, of giving the model a precomputed matrix of distances as input (e.g. cophenetic distances between nodes in a tree, or geodesic distances for spatial analysis). I know that it’s possible to implement this in Stan by coding the kernel function myself, but it would greatly increase the accessibility of these methods if they were available in brms. Particularly since the Matern kernels (which are so useful for spatial modelling) are available now, it would be fantastic to be able to to use more realistic distance metrics than Euclidean distance.
Is this something that there is interest in implementing in the near future? What are the main obstacles to doing so?
Thank you for taking the time to read this!
MM