You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I picked up an issue with fquantile and compare it to Hmisc::wtd.quantile() in the example below. I realize that the output from these two functions should not be exactly the same because they are not using the same approach to calculating the quantiles, so the small differences from most of the quantiles are not what I am referring to.
The issue I am pointing at is the 60% quantile from collapse::fquantile(), which decreases and then jumps back up for 70%. For the example below, this issue persists even when using different types (i.e. type = 5, etc.). Interestingly, the final example below where fquantile( x = c(1:100), w = rep(1, 100), probs = seq(from = 0.1, to = 1, by = 0.1)) the issue seems to disappear.
Thank you very much! As always, I am really enjoying the collapse package and appreciate all your work on it greatly.
Thanks, yeah this is strange. Looks like something is rounded off somewhere where it shouldn't. In general, the algorithm is a bit different from Hmisc, so the results are not identical by design, but this is of course a bug.
Hi Sebastian,
I picked up an issue with
fquantile
and compare it toHmisc::wtd.quantile()
in the example below. I realize that the output from these two functions should not be exactly the same because they are not using the same approach to calculating the quantiles, so the small differences from most of the quantiles are not what I am referring to.The issue I am pointing at is the 60% quantile from
collapse::fquantile()
, which decreases and then jumps back up for 70%. For the example below, this issue persists even when using different types (i.e.type = 5
, etc.). Interestingly, the final example below wherefquantile( x = c(1:100), w = rep(1, 100), probs = seq(from = 0.1, to = 1, by = 0.1))
the issue seems to disappear.Thank you very much! As always, I am really enjoying the collapse package and appreciate all your work on it greatly.
Zander
The text was updated successfully, but these errors were encountered: