R/testStat.R

Defines functions testStat

Documented in testStat

testStat <- function(sumFns,divByVar=divByVar) {
# Test statistic.
type <- attr(sumFns,"type")
#
if(type == "oneway") {
    return(oEngine(sumFns,divByVar=divByVar))
} else if(type == "twoway") {
    return(tEngine(sumFns,divByVar=divByVar))
} else if(type=="interac") {
    return(iEngine(sumFns,divByVar=divByVar))
} else {
    stop(paste0("Value of \"type\" ",type," not recognised.\n"))
}
}

Try the kanova package in your browser

Any scripts or data that you put into this service are public.

kanova documentation built on Aug. 8, 2025, 7:50 p.m.