R Commands Flashcards

1
Q

Find Agresti-Coull confidence interval in R

A

library(binom)
binom.confint( x = 6101, n = 9821, method = “ac”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Binomial Test

A

binom.test(X, n = #, p = #)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Chi squared test

A

chisq.test(toxoData$infectionStatus, toxoData$driverType, correct = FALSE)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Fisher’s exact test

A

fisher.test(datatitle$category1, datatitle$category2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Odds Ratio - look in slide deck 9, page 25

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

probability in the tail of a normal distribution above Z

A

pnorm(Z, mean = #, sd = #, lower.tail = FALSE)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly