I work with a problem that usually needs to calculate the distribution density t quite far in the tails in R.
For example, using the distribution function R t, dt(1.424781, 1486, -5)returns [1] 2.75818e-10. Some of my final outputs (using this density as input) do not correspond to the reference value from similar calculations performed by MATLAB by my colleague, which, in my opinion, may be due to inaccuracies in the t-tails of the distribution in R.
If I compare the distribution function of MATLAB t, it nctpdf(1.424781, 1486, -5)returns ans = 4.3932e-10, which is slightly different from the result of R.
edit: R prints two identical warning messages
In dt(1.424781, 1486, -5) : full precision may not have been achieved
in 'pnt{final}'
This is on Mac R version 3.3.1
source
share