I wanted to determine the CI for a binomial test:
b <- binom.test(73,85)
bUpper <- b$conf.int[2]-b$estimate[1]
bUpper
probability of success 0.06604512
How do i get rid of the line that says 'probability of success' ? Now that i have subtracted the estimate from the upper conference interval limit, this should no longer apply
Thanks Chris
You can do that:
bUpper[[1]]
[1] 0.06604512
Or analogously to Maurits solution:
b$conf.int[2]-b$estimate[[1]]
[1] 0.06604512
You can do this.
as.numeric(bUpper)
[1] 0.06604512
You can use unname
bUpper <- b$conf.int[2] - unname(b$estimate[1])
bUpper
#[1] 0.06604512
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.