Re: [Rd] inaccuracy in qbinom with partial argument matching

2007-06-29 Thread Peter Ruckdeschel
Petr Savicky wrote: > Brian Ripley wrote: >> I wrote: >> > ## partial argument matching: >> > qbinom(p0 , s = 3,p= 0.25) ## 1 ??? >> > qbinom(p0-0.05, s = 3,p= 0.25) ## 1 ??? >> > qbinom(p0-0.06, s = 3,p= 0.25) ## 0 o.K. >> > >> > Unfortunately I have no I idea how to

Re: [Rd] inaccuracy in qbinom with partial argument matching

2007-06-29 Thread Petr Savicky
> > ## partial argument matching: > > qbinom(p0 , s = 3,p= 0.25) ## 1 ??? > > qbinom(p0-0.05, s = 3,p= 0.25) ## 1 ??? > > qbinom(p0-0.06, s = 3,p= 0.25) ## 0 o.K. > > > > Unfortunately I have no I idea how to fix this. > > You use a call that specifies your intention

Re: [Rd] inaccuracy in qbinom with partial argument matching

2007-06-28 Thread Prof Brian Ripley
On Thu, 28 Jun 2007, Peter Ruckdeschel wrote: > Hi, > > I found the following strange effect with > qbinom & partial argument matching > > p0 <- pbinom(0, size = 3, prob = 0.25) > qbinom(p0, size = 3, prob = 0.25) ## 0 o.k. > qbinom(p0-0.05, size = 3, prob = 0.25) ## 0 o.k. > > ## positiona

[Rd] inaccuracy in qbinom with partial argument matching

2007-06-28 Thread Peter Ruckdeschel
Hi, I found the following strange effect with qbinom & partial argument matching p0 <- pbinom(0, size = 3, prob = 0.25) qbinom(p0, size = 3, prob = 0.25) ## 0 o.k. qbinom(p0-0.05, size = 3, prob = 0.25) ## 0 o.k. ## positional matching: qbinom(p0, 3,0.25) ## 0 o.k. #