2
function preprocess () { ?>
7
function calculate () {
8
$vars = "substitute (" . str_replace ("\n", "), substitute (", trim (getRK_val ("x"))) . ")";
11
vars <- list (<? echo ($vars); ?>)
12
results <- data.frame ('Variable Name'=rep (NA, length (vars)), check.names=FALSE)
13
for (i in 1:length (vars)) {
14
results[i, 'Variable Name'] <- rk.get.description (vars[[i]], is.substitute=TRUE)
15
var <- eval (vars[[i]], envir=globalenv ())
16
<? if (getRK_val ("length")) { ?>
17
results[i, 'Length'] <- length (var)
18
results[i, 'NAs'] <- sum (is.na(var))
22
results[i, 'Statistic'] <- paste (names (test$statistic), test$statistic, sep=" = ")
23
results[i, 'p-value'] <- test$p.value
29
function printout () {
31
rk.header ("Anderson-Darling Normality Test")
b'\\ No newline at end of file'