Description Usage Arguments Examples

View source: R/ES.proportions.R

Compute effect size for a difference in proportions

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

`p1` |
Proportion of sample one |

`p2` |
Proportion of sample two or a constant proportion |

`alternative` |
The test is two sided or one sided |

1 2 3 | ```
ES.proportions(0.65,0.45)
ES.proportions(0.25,0.05)
``` |

```
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
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.