Last chance! 50% off unlimited learning
Sale ends in
Performs pairwise comparisons after a global test for given proportions, by using exact binomial tests.
prop.multcomp(x, p, p.method = "fdr")
name of the test.
a character string giving the name(s) of the data.
observed proportions.
expected proportions.
method for p-values correction.
corrected p-values.
table or results of pairwise comparisons.
contingency table.
theoretical proportions.
method for p-values correction. See help of p.adjust
.
Maxime HERVE <maxime.herve@univ-rennes1.fr>
proportions <- sample(c(0,1),200,replace=TRUE)
populations <- sample(LETTERS[1:3],200,replace=TRUE)
tab.cont <- table(populations,proportions)
p.theo <- c(0.4,0.5,0.7)
prop.test(tab.cont,p=p.theo)
prop.multcomp(tab.cont,p=p.theo)
Run the code above in your browser using DataLab