summary.prop.comb {prop.comb.RR} | R Documentation |
Summary for a prop.comb object
Description
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.
Usage
## S3 method for class 'prop.comb'
summary(object, ...)
Arguments
object |
an object of class |
... |
Further arguments for summary. |
Author(s)
Maria Alvarez Hernandez and Javier Roca Pardinas
See Also
Examples
# 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)
[Package prop.comb.RR version 1.2 Index]