R/cb_h.R

Defines functions cb_h

#' @import stats
cb_h= function(x,alpha.post,beta.post,cova,vari,qun){
  b=qnorm(1-pnorm(beta.post))
  vec.fp = rep(x,length(alpha.post))
  varn = rep(vari,length(alpha.post))
  covn = rep(cova,length(alpha.post))
  sroc = pnorm(alpha.post+covn/varn*(qnorm(x)-b))
  quantile = quantile(sroc,qun)
  return(quantile)
}

Try the NMADiagT package in your browser

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

NMADiagT documentation built on Feb. 26, 2020, 9:06 a.m.