ES.proportions: Compute effect size for a difference in proportions

Description Usage Arguments Examples

View source: R/ES.proportions.R

Description

Compute effect size for a difference in proportions

Usage

1
2
ES.proportions(p1 = NULL, p2 = NULL, alternative = c("two.sided",
  "one.sided"))

Arguments

p1

Proportion of sample one

p2

Proportion of sample two or a constant proportion

alternative

The test is two sided or one sided

Examples

1
2
3
ES.proportions(0.65,0.45)

ES.proportions(0.25,0.05)

Example output

     effect size of the difference in proportions 

              h = 0.4048601
             p1 = 0.65
             p2 = 0.45

NOTE: The alternative hypothesis is p1 != p2
small effect size:  h = 0.2
medium effect size: h = 0.5
large effect size:  h = 0.8


     effect size of the difference in proportions 

              h = 0.5961707
             p1 = 0.25
             p2 = 0.05

NOTE: The alternative hypothesis is p1 != p2
small effect size:  h = 0.2
medium effect size: h = 0.5
large effect size:  h = 0.8

powerAnalysis documentation built on May 2, 2019, 12:40 p.m.