Closed sohraa3 closed 6 years ago
The paper https://cran.r-project.org/web/packages/sadists/sadists.pdf gives a simpler definition that Leemis. Pseudo-code:
doubly-noncentral-t(n,d,g)
z <- normal d 1
x <- chi-square g n
return z/sqrt(x/n)
KS seems beyond hakaru for now.
I am taking myself off of this one, as I have answered the question. You should probably not close it until you've implemented it though.
I've been looking at this with @sohraa3. I'm not familiar with that parameterization of chi-squared. Is it just an iid version where there are n underlying normal distributions with mean = 0 and stddev = g?
http://www.math.wm.edu/~leemis/chart/UDR/UDR.html
The two distributions "Doubly noncentral t" and "Kolmogorov–Smirnov", do not have a PDF in their description. How could these be implemented for the stdlib?