Staffan Betnér

Results 42 comments of Staffan Betnér

It is the same Python environment. I have setup an R kernel as well which works in both Jupyter and Atom. This seems to be the same error: https://github.com/nteract/hydrogen/issues/2126

After starting Atom within the Anaconda prompt it works. So you were right in some way. Need to figure out how!

In the meanwhile I can suggest that you fit a Poisson model with a random intercept per observation, which also models the overdispersion. The difference to a negative binomial model...

Sure! I am currently trying to figure out how the for loop in loo_varsel could be rewritten to allow for parallelization. Which settings wouldn't allow for parallelization?

To be clear, I initially meant in parallel in the posterior draw level. However, in this case I had 5 models and 6 CPU cores, so I made them parallel...

Now when I think about it, I think I really meant by data point...

Copying my last comment from Twitter: Well, I thought about this for a bit and realized that the only thing that is adjusted is that the range of where on...

I think this is sort of the same approach as DHARMa uses? (The notation is a bit tricky to follow) https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6133273

This is one approach to this for models fitted via MCMC methods but easy to extend to models fitted via MLE. https://mjskay.github.io/tidybayes/articles/tidybayes-residuals.html