R Commands Flashcards
1
Q
Find Agresti-Coull confidence interval in R
A
library(binom)
binom.confint( x = 6101, n = 9821, method = “ac”)
2
Q
Binomial Test
A
binom.test(X, n = #, p = #)
3
Q
Chi squared test
A
chisq.test(toxoData$infectionStatus, toxoData$driverType, correct = FALSE)
4
Q
Fisher’s exact test
A
fisher.test(datatitle$category1, datatitle$category2)
5
Q
Odds Ratio - look in slide deck 9, page 25
A
6
Q
probability in the tail of a normal distribution above Z
A
pnorm(Z, mean = #, sd = #, lower.tail = FALSE)