2
function preprocess () {
5
function calculate () {
7
$q = "c (" . preg_replace ("/[, ]+/", ", ", getRK_val ("q")) . ")";
10
rk.temp = (pnbinom (q = <? echo ($q); ?>, size = <? getRK ("size"); ?>, prob = <? getRK ("prob"); ?>, <? getRK ("tail"); ?>, <? getRK("logp"); ?>))
14
function printout () {
17
rk.header ("Negative Binomial probability", list ("Vector of quantiles", "<? echo ($q); ?>", "Size", "<? getRK ("size"); ?>", "Probability of success in each trial", "<? getRK ("prob"); ?>", "Tail", "<? getRK ("tail"); ?>", "Probabilities p are given as", "<? getRK ("logp"); ?>"))
18
cat ("<h3>Negative Binomial probabilities: ", rk.temp, "</h3>")