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
In the taxonomy of https://www.tandfonline.com/doi/abs/10.1080/00031305.1996.10473566 (see summary on Wikipedia), this would be the R-1 definition and is identical to the "population quantile" defined on Wikipedia. We currently only support the 4-9 definitions through the use of the alpha and beta keyword arguments.
The motivation is that it is sometimes nice that quantiles are based on values in the input data. This is something we have previously discussed in the context of the median function and it recently came up in JuliaData/CategoricalArrays.jl#381 (comment).
Since the R-1 definition can't be reached through special values of alpha and beta we'd need a separate interface if we are to support the new definition. One possibility is to introduce a new keyword argument, say method or definition, which takes Enum values and errors out if set simultaneously with alpha/beta.
The text was updated successfully, but these errors were encountered:
FWIW R's cut calls that argument type, which takes an integer.
We have two options for that argument:
Do the same as R, adjusting alpha and beta automatically according to the value of that argument. The advantage is that it's easy for people to replicate these definitions, which seem to be well established. Passing both type and alpha/beta would be disallowed.
Only allow type/method/whatever to specify whether the R-1 definition or the 4-9 definitions (linear interpolation) should be used, in the latter case alpha and beta would be used. Other values can be added later of course.
In the taxonomy of https://www.tandfonline.com/doi/abs/10.1080/00031305.1996.10473566 (see summary on Wikipedia), this would be the R-1 definition and is identical to the "population quantile" defined on Wikipedia. We currently only support the 4-9 definitions through the use of the
alpha
andbeta
keyword arguments.The motivation is that it is sometimes nice that quantiles are based on values in the input data. This is something we have previously discussed in the context of the
median
function and it recently came up in JuliaData/CategoricalArrays.jl#381 (comment).Since the R-1 definition can't be reached through special values of
alpha
andbeta
we'd need a separate interface if we are to support the new definition. One possibility is to introduce a new keyword argument, saymethod
ordefinition
, which takesEnum
values and errors out if set simultaneously withalpha
/beta
.The text was updated successfully, but these errors were encountered: