Likelihood function in the scan function (AR2 model)

If they aren’t jointly distributed you can just make two entirely separate CustomDists. If they are jointly distributed, your ar2_dist needs to return a vector of length 2, and you pass in all the parameters each distribution requires.

2 Likes