summary.prop.RR: Summary for a prop.RR object

Description Usage Arguments Author(s) See Also Examples

View source: R/summary.prop.RR.R

Description

Provides results for an object of class prop.RR. 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

1
2
## S3 method for class 'prop.RR'
summary(object, ...)

Arguments

object

an object of class prop.RR.

...

Further arguments for summary.

Author(s)

Maria Alvarez Hernandez and Javier Roca Pardinas

See Also

prop.RR

Examples

1
2
3
4
5
A <-prop.RR(x=c(11, 48), n=c(46, 102), conf.level=0.99)
summary(A)

B <-prop.RR(x=c(7, 14), n=c(114, 116), rho=2)
summary(B)

Example output

Loading required package: rootSolve
There were 20 warnings (use warnings() to see them)
 
       relative risk 
 
x: number of successes 
n: number of trials 
prop: proportion sample estimates 
 
 sample  x   n   prop
      1 11  46 0.2391
      2 48 102 0.4706
 
realtive risk: RR=p2/p1 
estimated RR: 1.9679 
 
alternative hypothesis: true relative risk R is not equal to 1 
 
                99 percent confidence interval 
                        lower limit upper limit z value p-value
Score (without cc)           1.0195      4.1929  2.6617  0.0078
Adjusted Score approx.       1.0107      4.3782  2.6230  0.0087
Adjusted Wald                1.0298      4.9891  2.7208  0.0065
Adjusted log transfor.       0.9434      3.9255  2.3655  0.0180
Adjusted-M Arc Sine (a)      1.0308      4.6315  2.7147  0.0066
Adjusted-M Arc Sine (b)      1.0207      4.4256  2.6709  0.0076
 
Recommendation: 
Adjusted-M Arc Sine (b) 
There were 42 warnings (use warnings() to see them)
 
       relative risk 
 
x: number of successes 
n: number of trials 
prop: proportion sample estimates 
 
 sample  x   n   prop
      1  7 114 0.0614
      2 14 116 0.1207
 
realtive risk: RR=p2/p1 
estimated RR: 1.9655 
 
alternative hypothesis: true relative risk R is not equal to 2 
 
                95 percent confidence interval 
                        lower limit upper limit z value p-value
Score (without cc)           0.8493      4.5950 -0.0393  0.9687
Adjusted Score approx.       0.8293      5.0444 -0.1183  0.9058
Adjusted Wald                0.8158      5.8954 -0.1867  0.8519
Adjusted log transfor.       0.8178      4.4156 -0.1189  0.9054
Adjusted-M Arc Sine (a)      0.8456      4.9150 -0.1183  0.9058
Adjusted-M Arc Sine (b)      0.8375      4.6072 -0.1939  0.8462
 
Recommendation: 
Adjusted Score approx. 

prop.comb.RR documentation built on May 2, 2019, 12:41 p.m.