tests/testthat/test_scaling.R

######################
context("scaling")
# dScale
x <- DepecheR:::generateBimodalData(observations = 100)
y_df <- DepecheR:::dScale(x[[1]])

###################### dScaleCoFunction
x <- DepecheR:::generateBimodalData()
result <- DepecheR:::dScaleCoFunction(x[[1]][, 2],
    control = x[[1]][, 2],
    scale = c(0.001, 0.999),
    robustVarScale = TRUE,
    truncate = c(0.001, 0.999),
    center = "mean", multiplicationFactor = 1
)
Theorell/DepecheR documentation built on July 27, 2023, 8:13 p.m.