File: ci.NotTransformed.R

package info (click to toggle)
r-cran-optimalcutpoints 1.1-5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 432 kB
  • sloc: makefile: 2
file content (9 lines) | stat: -rw-r--r-- 319 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
ci.NotTransformed <-
function (x, y, measure, n, conf.level) {
	z <- qnorm(1-((1-conf.level)/2))
    
    	ll <- measure-z*sqrt((x*(1-x))/(n$d*(y^2))+(x^2*(1-y)*y)/(n$h*(y)^4))
    	ul <- measure+z*sqrt((x*(1-x))/(n$d*(y^2))+(x^2*(1-y)*y)/(n$h*(y)^4))

    	res <- list (ci = matrix(c(ll,ul), ncol = 2))    
}