### PROPORTIONS TEST FOR k INDEPENDENT SAMPLES WITH COMPLETELY SPECIFIED ### NULL HYPOTHESIS PROBABILITIES ### DESCRIPTION: ### Tests whether underlying proportions for the k samples are equal to specified ### probabilities. ### REQUIRED ARGUMENTS: ### x = vector of k elements containing the number of successes for each sample. ### n = vector of k elements containing the total number of trials for each sample. ### p = vector of k elements containing the specified probabilities. ### NOTE: elements in x, n, and p must all correspond with one another. x <- c(83,90,129,70) n <- c(86,93,136,82) p <- c(.95,.95,.95,.90) conf.level <- .95 prop.test(x,n,p=p,conf.level=conf.level,correct=T)