function ppois is a function calculate the CDF of Poisson distribution, it
should generate a non-decreasing result, but what I got is:
> any(diff(ppois(0:19,lambda=0.9))<0)
[1] TRUE
Actually,
> ppois(19,lambda=0.9)https://stat.ethz.ch/mailman/listinfo/r-devel
On Tue, 4 Dec 2018 at 11:12, wrote:
>
> function ppois is a function calculate the CDF of Poisson distribution, it
> should generate a non-decreasing result, but what I got is:
>
> > any(diff(ppois(0:19,lambda=0.9))<0)
> [1] TRUE
>
> Actually,
>
> > ppois(19,lambda=0.9) [1] TRUE
>
> Which could n
Le 04/12/2018 à 11:27, Iñaki Ucar a écrit :
On Tue, 4 Dec 2018 at 11:12, wrote:
function ppois is a function calculate the CDF of Poisson distribution, it
should generate a non-decreasing result, but what I got is:
any(diff(ppois(0:19,lambda=0.9))<0)
[1] TRUE
Actually,
ppois(19,lambda=0.
I do think it's plausible to expect that we could get *non-decreasing*
results.
I get
any(diff(exp(ppois(0:19, lambda=0.9, log.p=TRUE)))<0)
as FALSE.
But I do get diff(ppois(18:19, lambda=0.9)) < 0.
Looking at the code of ppois, it's just (within C code) calling pgamma
with pgamma(lambda,
> Serguei Sokol
> on Tue, 4 Dec 2018 11:46:32 +0100 writes:
> Le 04/12/2018 à 11:27, Iñaki Ucar a écrit :
>> On Tue, 4 Dec 2018 at 11:12, wrote:
>>> function ppois is a function calculate the CDF of Poisson distribution,
it should generate a non-decreasing result, but wh
The NEWS file for R-devel (as of 2018-11-28 r75702) says
• order(, decreasing=c(TRUE,FALSE)) could fail in some cases.
Reported from StackOverflow via Karl Nordström.
However, either I don't understand the meaning of decreasing=c(TRUE,FALSE)
or there are still problems. I thought order
The patch below adds support for custom HTTP headers in
download.file() and url().
My main motivation for this is performing basic http authentication.
Some web sites do not support embedding the credentials into the URI
itself, they only work if the username and password are sent in the
HTTP head