HI Andrew,
I just tried to implement a proper CAR model, which has a parameter rho to measure the strength of spatial correlation(i.e. the conditional mean for a region is the mean of the neighbors times rho). The CAR model can be specified on the precision matrix, so the evaluation of the log density is fast (including calculation of determinant and quadratic term).
I'm just wondering if I have some "CAR" models created by myself, which is just a multivariate normal prior on the spatial effect. However, if the covariance matrix is only available (depend on some parameters), not the precision matrix, is there a way to avoid calculating the inverse? Or faster ways to do that in Stan?
The inverse is slow after I tested.
Jiang
在 2016年5月20日星期五 UTC-5下午4:02:22,Andrew Gelman写道: