Problem for accounting for spatial correlation with NNGP model

brms has the Practical Hilbert space approximate Bayesian Gaussian processes for probabilistic programming implemented. Just add option k to gp(). From gp: Set up Gaussian process terms in 'brms' in brms: Bayesian Regression Models using 'Stan'

  • k Optional number of basis functions for computing approximate GPs. If NA (the default), exact GPs are computed.