postHocPower: Estimate of Post Hoc Power from 1000 Simulations

Description Usage Arguments Value Examples

View source: R/hw07Functions.R

Description

Estimate of Post Hoc Power from 1000 Simulations

Usage

1
postHocPower(d, n1, n2)

Arguments

d

effect size (Cohen's d)

n1

number of samples in group 1

n2

number of samples in group 2

Value

estimate of post hoc power from 1000 simulations. formula: power estimate = # statistically significant simulations / total # of simulations

Examples

1
2
postHocPower(d = 1, n1 = 100, n2 = 90)
postHocPower(d = 0.5, n1 = 20, n2 = 22)

hmumme/bmi585hmumme documentation built on Dec. 20, 2021, 4:46 p.m.