compPower: Comparison of Powers for Different Tests under Different Randomization methods
Description
Compares the power of tests under different randomization methods and treatment effects through matrices and plots.
Usage
compPower(powers, diffs, testname)
Value
This function returns a list. The first element is a matrix consisting of powers of chosen tests under different values of treatment effects. The second element of the list is a plot of powers. diffs forms the vertical axis of the plot.
Arguments
powers
a list. Each argument consists the power generated by evalPower() in this package or by other sources. The length of each argument must match.
diffs
a vector. It contains values of group treatment effect differences. The length of this argument and the length of each argument of powers must match.
testname
a vector. Each element is the name of test and the randomization method used. For example, when applying rand.test and corr.test under HuHuCAR, it can be c("HH.rand","HH.corr"). The length of this argument must match the length of diffs.