R/get_seq_decision.R

Defines functions get_seq_decision

get_seq_decision <- function(likelihood_ratio, boundaries){
  if (likelihood_ratio >= boundaries$A) {
    decision <- "accept H1"
  } else if (likelihood_ratio <= boundaries$B) {
    decision <- "accept H0"
  } else{
    decision <- "continue sampling"
  }
  decision
}
MeikeSteinhilber/sprtt documentation built on Jan. 19, 2024, 1:56 a.m.