Implementing hierarchical priors encoded in tree structures

If you have a fixed tree structure with known depth and relationships, for example country → state → city, you can use a solution like this one (althought it appears that code has some bugs!). It seems like what you want is slightly different from the binary branching you presented in the first post? Maybe it would be best if you go back to the beginning and explain what your exact problem setup and model is, and we can go from there.

1 Like