Description Usage Arguments Author(s) See Also Examples
View source: R/summary.prop.comb.R
Provides results for an object of class prop.comb
. It shows the contingency table with observed data, the parameter of interest and its estimated value. It provides confidence intervals (lower limit, upper limit) and p-values of the test (with z-values of statistics) for methods mentioned in references. It allows to calculate coverage probabilities for each method. It also indicates the alternative hypothesis and the recommendation about the optimal method for that particular case.
1 2 |
object |
an object of class |
... |
Further arguments for summary. |
Maria Alvarez Hernandez and Javier Roca Pardinas
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # One proportion
A <-prop.comb(x=16, n=109, alternative="two.sided", conf.level=0.95)
summary(A)
# Difference of proportions
B <-prop.comb(x=c(83,69), n=c(88,76), alternative="two.sided", conf.level=0.95)
summary(B)
# Linear combination of two proportions
C <-prop.comb(x=c(44, 3), n=c(54, 58), a=c(-0.4, 0.6), alternative="two.sided", conf.level=0.95)
summary(C)
D <-prop.comb(x=c(32, 34), n=c(107, 92), a=c(107/199, 92/199), alternative="two.sided",
conf.level=0.95)
summary(D)
# Linear combination of k>2 proportions
E <-prop.comb(x=c(73,32,44,34,104), n=c(158,107,175,92,143),
a=c(158/675,107/675,175/675,92/675,143/675))
summary(E)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.