Skip to content

Commit

Permalink
Update initial proposal ll in hiatus case
Browse files Browse the repository at this point in the history
  • Loading branch information
brenhinkeller committed Jul 16, 2024
1 parent 971dd92 commit 296d931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/StratMetropolis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,8 @@
end

# Add log likelihood for hiatus duration
duration = @. min(model_ages[closest_hiatus_unique - 1] - model_ages[closest_hiatus_unique], Hiatus_duration)
ll += normpdf_ll(Hiatus_duration, Hiatus_duration_sigma, duration)
duration = @. model_ages[closest_hiatus_unique - 1] - model_ages[closest_hiatus_unique]
ll += normcdf_ll(Hiatus_duration, Hiatus_duration_sigma, duration)

# Preallocate variables for MCMC proposals
llₚ=ll
Expand Down

0 comments on commit 296d931

Please sign in to comment.