# NOT RUN {
data(exdat)
## example analysis using aSPU test on exdat data.
# increase n.perm for better p.val
# }
# NOT RUN {
out <- aSPU(exdat$Y, exdat$X, cov = NULL, resample = "boot",
model = "binomial", pow = c(1:8, Inf), n.perm = 1000)
# }
# NOT RUN {
out$Ts
# This is a vector of Test Statistics for SPU and aSPU tests.
# SPU1 to SPUInf corresponds with the option pow=c(1:8, Inf)
# They are SPU test statistics.
# The last element aSPU is minimum of them, aSPU statistic.
out$pvs
# This is a vector of p-values for SPU and aSPU tests.
# SPU1 to SPUInf corresponds with the option pow=c(1:8, Inf)
# They are p-values for corresponding SPU tests.
# The last element is p-value of aSPU test.
# }
Run the code above in your browser using DataLab