Hello,
When accounting for spatial autocorrelation in a model with categorical response variable, I have this error:
Error: Explicit covariance terms can only be specified on 'mu'.
Any clue how to fix this?
I fitted the model as follow:
fit <- brm(y ~ x + (1|p|Id) + sar(W), data = dt, data2 = list(W = W), family = categorical())
I don’t have the error when I fit the spatial autocorrelation with for instance a guassian response.
Thanks
- Operating System: Windows 10
- brms Version: 2.13.0