9 Flashcards
Tailed tailed Test function for proportion?
prop.test(num of successes, n, p0 (hypothesized value), alternative = “less”)
Assumptions for prop.test function?
•n*p0 >= 10
•n(1 - p0) >= 10
•SRS (simple random sample)
Right tailed test for proportions?
prop.test(num of successes, n, p, alternative = “greater”)
Two sided test for proportions?
prop.test(num of successes, n, p, alternative = “two.sided”)
Two sided Test for two proportions (testing whether the proportion of successes between two populations are the same)?
prop.test(x = c(success1, success2), n = c(n1, n2), alternative = “two.sided”)
Right tailed prop test for two proportions?
prop.test(x = c(success1, success2), n = c(n1, n2), alternative = “greater”)
Left tailed test for two proportions?
prop.test(x = c(success1, success2), n = c(n1, n2), alternative = “less”)
Two sided test for single mean?
t.test(x = sample, alternative = “two.sided”, mu)
Right tailed test for the means of two populations?
t.test(x = sample1, y = sample2, alternative = “greater”, var.equal = TRUE), var.equal determines whether the variances are the same. Two-sample t test
Left tailed test to compare the means of two separate populations?
t.test(x = sample1, y = sample2, alternative = “less”, var.equal = TRUE), var.equal determines whether the variances are the same. Two-sample t test
Welch two-sample t test?
When comparing two samples without the same variances.