R/calc_seq_ttest_boundaries.R

Defines functions calc_seq_ttest_boundaries

calc_seq_ttest_boundaries <- function(power, alpha, log = FALSE){
  A <- power / alpha
  B <- (1 - power) / (1 - alpha)

  if (log == FALSE) {
    list(
      A = A,
      B = B
    )
  } else{
    list(
      A = log(A),
      B = log(B)
    )
  }
}

Try the sprtt package in your browser

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

sprtt documentation built on Aug. 7, 2021, 1:06 a.m.