R/randPIT.R

### Function to randomize PITs
normRandPIT <- function(object){
    temp <- glarmaPredProb(object)
    rt <- qnorm(runif(length(temp$lower), temp$lower, temp$upper))
    rtMid <- qnorm((temp$lower + temp$upper)/2)
    list(rt = rt, rtMid = rtMid)
}

Try the glarma package in your browser

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

glarma documentation built on May 2, 2019, 6:33 a.m.