### PROPORTIONS TEST FOR TWO INDEPENDENT SAMPLES ### DESCRIPTION: ### Tests whether underlying proportions are equal. ### REQUIRED ARGUMENTS: ### x = vector of 2 elements containing the number of successes for each sample. ### n = vector of 2 elements containing the total number of trials for each sample. ### NOTE: the elements in the x vector must correspond to the elements ### in the n vector. ### conf.level = desired confidence level ### alternative = "two.sided", "greater", "less" (choose 1) x <- c(57,142) n <- c(200745,201229) alternative <- "two.sided" conf.level <- .95 prop.test(x,n,alternative=alternative,conf.level=conf.level,correct=T)