5
function calculate () {
6
p = "c (" + preg_replace ("/[, ]+/", ", ", getValue ("p")) + ")";
8
echo ('result <- (qunif (p = ' + p + ', min = ' + getValue ("min") + ', max = ' + getValue ("max") + ', ' + getValue ("tail") + ', ' + getValue("logp") + '))\n');
11
function printout () {
12
echo ('rk.header ("Uniform quantile", list ("Vector of probabilities", "' + p + '", "Lower limits of the distribution", "' + getValue ("min") + '", "Upper limits of the distribution", "' + getValue ("max") + '", "Tail", "' + getValue ("tail") + '", "Probabilities p are given as", "' + getValue ("logp") + '"))\n');
13
echo ('rk.results (result, titles="Uniform quantiles")\n');