inst/tests/comparisons/penalisation.R

# penalisation sqrt
penalisationSqrt <- function(stat, n, len) {
  sqrt(2 * stat) - sqrt(2 * log(exp(1) * n / len))
}

# penalisation log
penalisationLog <- function(stat, n, len) {
  stat - log(exp(1) * n / len)
}

Try the stepR package in your browser

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

stepR documentation built on Oct. 18, 2024, 5:10 p.m.