postHocPower: Post-Hoc Power

Description Usage Arguments Details Value Examples

View source: R/postHocPower.R

Description

Given an effect size d and two sample sizes n1 and n2, estimates Post-Hoc Power

Usage

1
postHocPower(d, n1, n2)

Arguments

d

effect size

n1

number of observations in first group

n2

number of observations in second group

Details

Uses Monte Carlo simulation approach to run 1000 t-tests against 2 generated samples of size n1 and n2 respectively. The mean of the second normal distribution is centered at d to allow for the given effect size

Value

post hoc power estimate

Examples

1
postHocPower(1,12,12)

frankchien/bmi585flc documentation built on Dec. 20, 2021, 8:51 a.m.