
zscoreNBinom(q, size, mu)
q
, then converts to the standard normal deviate with the same cumulative probability distribution value.
Care is taken to do the computations accurately in both tails of the distributions.pnbinom
, qnorm
in the stats package.zscoreNBinom(c(0,10,100), mu=10, size=10)
Run the code above in your browser using DataLab