2
function preprocess () {
5
function calculate () {
7
rk.temp <- (pf (q = <? getRK ("q"); ?>, df1 = <? getRK ("df1"); ?>, df2 = <? getRK ("df2"); ?>, ncp = <? getRK ("ncp"); ?>, <? getRK ("tail"); ?>))
11
function printout () {
15
rk.header ("F probability", list ("Variable value", "<? getRK ("q"); ?>", "Numerator degrees of freedom", "<? getRK ("df1"); ?>", "Denominator degrees of freedom", "<? getRK ("df2"); ?>", "non-centrality parameter", "<? getRK ("ncp"); ?>", "Tail", "<? getRK ("tail"); ?>"));
16
cat ("<h3>F probability: ", rk.temp, "</h3>")
2
function preprocess () {
5
function calculate () {
7
$q = "c (" . preg_replace ("/[, ]+/", ", ", getRK_val ("q")) . ")";
9
rk.temp <- (pf (q = <? echo ($q); ?>, df1 = <? getRK ("df1"); ?>, df2 = <? getRK ("df2"); ?>, ncp = <? getRK ("ncp"); ?>, <? getRK ("tail"); ?>))
13
function printout () {
16
rk.header ("F probability", list ("Vector of quantiles", "<? echo ($q); ?>", "Numerator degrees of freedom", "<? getRK ("df1"); ?>", "Denominator degrees of freedom", "<? getRK ("df2"); ?>", "non-centrality parameter", "<? getRK ("ncp"); ?>", "Tail", "<? getRK ("tail"); ?>"));
17
cat ("<h3>F probabilities: ", rk.temp, "</h3>")