I have a question about the precision of Stata's statistical functions, in particular gammap() and gammaptail(). The results are not quite lining up with Mathematica for me. The differences are small but noticeable. For example, with k=.8078858 and L=3.35227, Stata's
gammaptail(1/k, L)
returns .0544, while the equivalent function in Mathematica returns .0495.
That's about a 10% difference. I tend to think of Mathematica as a gold standard for accuracy. Does Stata use an approximation that could be off by 10% with these input?
gammaptail(1/k, L)
returns .0544, while the equivalent function in Mathematica returns .0495.
That's about a 10% difference. I tend to think of Mathematica as a gold standard for accuracy. Does Stata use an approximation that could be off by 10% with these input?
Comment