Open mikoontz opened 4 years ago
This looks like a bug. I'll work on fixing, hopefully today. Good catch!
awesome, thanks!
It looks like my implementation for this function was pretty short-sighted. Can you use Emcdf::emcdf()
or is it too slow for your needs?
ah, bummer! sorry to bear the bad news :(
Unfortunately, I do think that Emcdf::emcdf()
is too slow for my needs. I see that it is written in C++, but I can't quite interpret what algorithm is actually being used under the hood (https://github.com/cran/Emcdf/blob/master/src/emcdf.cpp)
I'm currently looking at this new algorithm, which seems promising: https://link.springer.com/article/10.1007%2Fs00180-017-0771-x but I don't yet have the {data.table} skills to implement it in a way that takes advantage of that tool too. We'll see how far I get!
Hello!
I'm getting unexpected results from
mltools::empirical_cdf()
that differ from a base R implementation as well as theEmcdf::emcdf()
implementation. Am I missing something that would make the {mltools} implementation correct and the other ones wrong?Here's a reproducible example:
The data look like this:
And the implementation of the ecdf looks like this:
Which yields: