powered by
Calculate pairwise comparisons between pairs of proportions with correction for multiple testing
pairwise.prop.test(x, n, p.adjust.method = p.adjust.methods, ...)
Vector of counts of successes or a matrix with 2 columns giving the counts of successes and failures, respectively.
Vector of counts of trials; ignored if x is a matrix.
x
Method for adjusting p values (see p.adjust). Can be abbreviated.
p.adjust
Additional arguments to pass to prop.test
prop.test
Object of class "pairwise.htest"
"pairwise.htest"
prop.test, p.adjust
smokers <- c( 83, 90, 129, 70 ) patients <- c( 86, 93, 136, 82 ) pairwise.prop.test(smokers, patients)
Run the code above in your browser using DataLab