athowes / beyond-borders

Evaluating the suitability of spatial adjacency for small-area estimation
https://athowes.github.io/beyond-borders
MIT License
2 stars 1 forks source link

Shouldn't be generating posterior simulations so many times in model assessment #12

Closed athowes closed 2 years ago

athowes commented 2 years ago

Simulate posterior, take one column, then discard, then simulate posterior, take another column and so on. Costly. Should find alternative way to do it (simulate posterior and use all the columns).

athowes commented 2 years ago

Gone from 14.1772 mins to 1-2 mins (for one set of 20 * 9 = 180 models) -- so about one second per model now.

athowes commented 2 years ago

This worked well! Nice work.