Displaying 2 results from an estimated 2 matches for "r78478".
Did you mean:
r78477
2020 May 18
3
quantile() type 1 for some ordered factors in R-devel
Hi,
In R-devel (2020-05-17 r78478) quantile() type 1 seems to behave a little
bit strange for some ordered factors:
quantile(factor(1:3, ordered = TRUE), 0.5, type = 1)
returns ?2? as expected. But
quantile(factor(2:4, ordered = TRUE), 0.5, type = 1)
returns ?4? and
quantile(factor(3:5, ordered = TRUE), 0.5, type = 1)
returns ?NA?....
2020 May 20
1
quantile() type 1 for some ordered factors in R-devel
...M Kurt Hornik <Kurt.Hornik at wu.ac.at> wrote:
> >>>>> Tobias Rockel writes:
>
> Thanks for spotting this, and also to Hadley for reporting to me
> directly.
>
> Fixed now with c78501.
>
> Best
> -k
>
> > Hi,
> > In R-devel (2020-05-17 r78478) quantile() type 1 seems to behave a little
> > bit strange for some ordered factors:
> > quantile(factor(1:3, ordered = TRUE), 0.5, type = 1)
> > returns ?2? as expected. But
> > quantile(factor(2:4, ordered = TRUE), 0.5, type = 1)
> > returns ?4? and
> > quanti...