tests/testthat/test_dWilcox.R

###################### dWilcox
context("dWilcox")
data("testData")
data("testDataDepeche")
data("testDataSNE")
allDataRows <- c(
    1:200, 1001:1200, 2001:2200, 3001:3200, 4001:4200,
    10001:10200, 11001:11200, 12001:12200, 13001:13200,
    14001:14200
)
xYData <- testDataSNE$Y[allDataRows, ]
idsVector <- testData$ids[allDataRows]
groupVector <- testData$label[allDataRows]
clusterVector <- testDataDepeche$clusterVector[allDataRows]

result <- dWilcox(
    xYData = xYData, idsVector = idsVector,
    groupVector = groupVector,
    clusterVector = clusterVector, createOutput = FALSE
)

# Alternative usage
subsetVector <- sample(1:nrow(testData), size = 1000)

result <- dWilcox(
    xYData = xYData, idsVector = idsVector,
    groupVector = groupVector, clusterVector = clusterVector,
    displayVector = subsetVector, createOutput = FALSE
)
Theorell/DepecheR documentation built on July 27, 2023, 8:13 p.m.