postHocPower: Map Cohen's d and sample size to power

Description Usage Arguments Value Examples

View source: R/homework.R

Description

This takes in a measured effect size or Cohen's d, and total sample size used, and returns the power of the analysis, in decimal value (i.e. 0.7 would be 70% power).

Usage

1
postHocPower(d, n1, n2)

Arguments

d

The effect size measured or Cohen's d

n1

Sample size from first group.

n2

Sample size from second group.

Value

A decimal number between 0 and 1, indicating the power of the analysis.

Examples

1
postHocPower(0.6,20,25)

loublanpain/BMI585FinalProjectLouBlanpain documentation built on Dec. 21, 2021, 11:49 a.m.