Gaussian hypergeometric function for exact distribution of a correlation

I am trying to define the exact distribution of a correlation, but I cannot find a built-in Stan function for the Gaussian hypergeometric function. Frankly my math is not up to snuff to understand it and write it myself. Is this built in to Stan already, or has anyone written their own version?

1 Like

@andrjohns has worked on adding it. I believe the next release should have it.

Thanks for the heads up! I’ll keep my eye out for it.