R/min_samp.R

Defines functions min_samp

Documented in min_samp

#' Compute minimum sample size.
#' 
#' Returns a default minimum sample size to start power_vs_n_plot() at.
#'
#' @param alph Vector to describe the MEE under the alternative.
#' @param bet  Vector to describe the MEE under the null.
#'
#' @return A default minimum sample size to start power_vs_n_plot() at.
#' @export
#'
#' @examples min_samp(alpha_1, beta_1)
min_samp <- function(alph, bet){
  return(length(alph) + length(bet) + 1)
}

Try the MRTSampleSizeBinary package in your browser

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

MRTSampleSizeBinary documentation built on May 1, 2022, 5:08 p.m.