Skip to content

Should I allow all summaries to be used in inference? #721

Answered by michaeldeistler
joepiekos asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @joepiekos !

I'm very sorry for not replying sooner! Apparantly one does not receive email notification when a discussion topic is created, and so I had never seen this message. Apologies!

Anyways, there is a good solution for this: to use a RestrictionEstimator. The restriction estimator will restrict the prior to regions which satisfy a given criterion (in your case: more than 1 person that caugt the disease). There is a tutorial here. This tutorial is specific to regions which produce NaN, but you can adapt it to any decision_criterion to the RestrictionEstimator, e.g.

def decision_criterion(summary_stats):
    return summary_stats[:, 0] > 1.0

Hope this helps!
Michael

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by janfb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants