How do I solve for the "prob=" parameter of pbinom() if I want pbinom() to equal a specific value and I assume values for "q=" and "size=" parameters? Let's assume that I want pbinom() to equal 0.1 when I have q=5, size=10, and lower.tail=FALSE, is there a function or way to determine to what the "prob=" parameter should be equal? For example:
> pbinom(q=5,size=10,prob=.3542,lower.tail=FALSE)
[1] 0.09998054
Through trial and error, I found that prob=.3542 is close enough. I know that qbinom() is the inverse of pbinom()
, but I'm not interested in finding q=5 given I want pbinom()=.1
. I instead want to find "prob=" given I know pbinom(q=5,size=10,prob=?,lower.tail=FALSE)=.1.
Thanks in advance for your help.
*Sorry if this has already been answered elsewhere. I looked and couldn't find it. Seems pretty simple, so I was surprised.