R/lrtesg.R

Defines functions lrtseg

Documented in lrtseg

lrtseg <- function(DIF, RES, alpha, varc, vres, th0, th1, vari){

  tmp1 <- verosi2(DIF, RES, alpha, vres, th1, vari)

  tmp2 <- verosi2(DIF, RES, alpha, vres, th0, varc)

  LR <- tmp2 / tmp1

  if (LR>1){
    LR <- 1
  }

  chi <- -2 * log(LR)

  OUT <- list("LR"=LR, "chi" = chi)

}

Try the InDisc package in your browser

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

InDisc documentation built on June 16, 2021, 9:09 a.m.