varStandardizedEffectSize: varStandardizedEffectSize

View source: R/NPSimulation.R

varStandardizedEffectSizeR Documentation

varStandardizedEffectSize

Description

Function calculates the exact variance of a standardized effect size based on the relationship between t and the standardized effect size, see Morris and DeShon, Combining Effect Size Estimates in Meta-Analysis With Repeated Measures and Independent-Groups Designs, Psychological Methods, 7 (1), pp 105-125.

Usage

varStandardizedEffectSize(d, A, f, returnVarg = TRUE)

Arguments

d

An unadjusted standardized effect size

A

The squared constant linking t and d i.e. t*sqrt(A)=d

f

The degrees of freedom of the t value

returnVarg

if set to TRUE return the variance of the small sample size adjusted standardized effect size (g), otherwise returns var(d) where d is the input parameter

Value

if returnVarg if set to TRUE, return var(g) otherwise var(d)

Author(s)

Barbara Kitchenham and Lech Madeyski

Examples

d <- 0.5
varStandardizedEffectSize(d, 2 / 20, 38, returnVarg = FALSE)
# [1]  0.1047567
varStandardizedEffectSize(d, 2 / 20, 38, returnVarg = TRUE)
# [1] 0.1090516

reproducer documentation built on Oct. 18, 2023, 5:10 p.m.