Learn R Programming

powertools (version 1.0.0)

es.h: Cohen h effect size calculation for two proportions

Description

Takes as input the outcome proportions in two groups and returns the h effect size as defined by Cohen (1988).

Usage

es.h(p1 = NULL, p2 = NULL)

Value

A list of the arguments and the h effect size.

Arguments

p1

The outcome proportion in group 1.

p2

The outcome proportion in group 2.

Details

Cohen J (1988) Statistical Power Analysis for the Behavioral Sciences, 2nd edition. Lawrence Erlbaum Associates, Hillsdale, New Jersey

Examples

Run this code
es.h(p1 = 0.8, p2 = 0.6)

Run the code above in your browser using DataLab