naobservatory / p2ra

4 stars 1 forks source link

Hierarchical model checking #171

Closed dp-rice closed 1 year ago

dp-rice commented 1 year ago

Resolves #169. Made some more plots to assess the model fit. I found that:

I made the following changes to the model:

The sampler still gets stuck occasionally when mu gets very low (-10), but this only happens when we have very few (zero?) viral read counts, in which case our posteriors aren't super useful except to give an upper bound on the P2RA coefficient.

I also refactored the Model class to simplify plotting and make it easier to adjust the hyperparameters.