R/confint.threshold.r

Defines functions confint.threshold

Documented in confint.threshold

confint.threshold <- function(object, parm, level = 0.95, ...)
{
#object of class "threshold"

a <- (1 - level)/2
a <- c(a, 1 - a)
pct <- paste(a*100,"%")
fac <- qnorm(a)

cf <- object$threshpar
ses <- object$se.thresh
dn <- names(object$threshpar)

ci <- array(NA, dim = c(length(cf), 2), dimnames = list(dn,pct))
ci[] <- cf + ses %o% fac
ci

}

Try the eRm package in your browser

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

eRm documentation built on May 29, 2024, 2:12 a.m.