Learn R Programming

reproducer (version 0.4.0)

calculateSmallSampleSizeAdjustment: calculateSmallSampleSizeAdjustment

Description

Function calculates the Hedges small sample size adjustment for standardized mean effect sizes. It calculates the exact value unless the caller sets the parameter exact to FALSE, or the degrees of freedom is too large.

Usage

calculateSmallSampleSizeAdjustment(df, exact = TRUE)

Arguments

df

A vector of degrees of freedom

exact

Default value=TRUE, If exact==TRUE the function returns the exact value of the adjustment(s) which is suitable for small values of df, if exact==FALSE the function returns the approximate version of the adjustment(s). See Hedges and Olkin 'Statistical methods for Meta-Analysis' Academic Press 1985.

Value

small sample size adjustment value

Examples

Run this code
# NOT RUN {
df <- 2
c <- calculateSmallSampleSizeAdjustment(df)

df=c(5,10,17)
adjexact=calculateSmallSampleSizeAdjustment(df)
# adjexact=0.8407487 0.9227456 0.9551115
# Hedges and Olkin values 0.8408, 0.9228,0.9551
adjapprox=calculateSmallSampleSizeAdjustment(df,FALSE)
# adjapprox=0.8421053 0.9230769 0.9552239
# }

Run the code above in your browser using DataLab