Using Turing for MCMC estimation

This program is not working, how can obtain the estimations for all parameters?

You’re more likely to get a helpful reply if you provide more details. What does “not working” mean? Is there an error message? If yes, provide the message. Is there no error, but the output is incorrect? What is the output? How do you know it’s incorrect?

Without that, I’ll guess at one problem: data = [] creates a Vector{Any}, but you’ve define rdeg to only work with AbstractVector{<:Real}. Initialize data = Float64[] instead should fix that problem.

2 Likes