R/AWFisherUtil.R

Defines functions aw.fisher.stat

aw.fisher.stat <- function(pstat, n) {
    index = match(n, sysdata[["nList"]])
    
    ##### Estimating ###########
    f = splinefun(c(0, sysdata$original[index, ]), 
                  c(0, sysdata[["logPTarget"]]), method = "monoH.FC")
    exp(-f(pstat))
}
Caleb-Huo/AWFisher documentation built on June 16, 2022, 5:48 p.m.