rmcelreath / rethinking

Statistical Rethinking course and book package
2.17k stars 606 forks source link

Feature request: add a template for exponentially modified Gaussian distribution #347

Open mag607 opened 2 years ago

mag607 commented 2 years ago

I tried to use the stan exp_mod_normal distribution as part of my Ulam input but got this error: Error in get_dist_template(the_dist[1]) : No template for distribution 'exp_mod_normal'

Is it possible to use an exGaussian as a prior distribution in the rethinking package?

(And thank you so much for Statistical Rethinking! I have learned so much and am slowing shifting to Bayesian stats because of this resource.)

rmcelreath commented 2 years ago

Okay, I added a quick template for it and pushed to Experimental branch. I haven't tested it! Still have bigger features to add to Experimental before merge, so will add a test for exp_mod_normal as well. https://github.com/rmcelreath/rethinking/commit/885f3fdbfb0112e6787e91a299f4c59a14e07794