prop: Test of Two Proportions

Description Usage Arguments Details References Examples

Description

Provides magnitude-based inferences upon given proportions and sample sizes. Based upon WG Hopkins Microsoft Excel spreadsheet.

Usage

1
prop(p1, n1, p2, n2, conf.int)

Arguments

p1

proportion of group 1

n1

sample size of group 1

p2

proportion of group 2

n2

sample size of group 2

conf.int

(optional) confidence level of the interval. Defaults to 0.90

Details

Refer to vignette for further information.

References

Hopkins WG. (2007). A spreadsheet for deriving a confidence interval, mechanistic inference and clinical inference from a p value. Sportscience 11, 16-20. sportsci.org/2007/wghinf.htm

Examples

1
prop(p1 = 0.7, n1 = 25, p2 = 0.5, n2 = 20)

Example output

   Test of Two Proportions:
   diff = -0.2
   chi-sq = 1.87
   90% CI [-0.41, 0.04]
   p value = 0.21

   phi = 0.2

   Magnitude-Based Inference 

        Unlikely  Likely       
        "Trivial" "Substantial"
MBI (%) "24.5"    "75.5"       

Inference: Likely Small Effect Size.

mbir documentation built on May 1, 2019, 10:11 p.m.