gammaEffectSize: Calculate Gamma effect size proposed by Akinshin.

gammaEffectSizeR Documentation

Calculate Gamma effect size proposed by Akinshin.

Description

Function for calculating non-parametric effect size for any specified quantile(s).

Usage

gammaEffectSize(
	x,
	y,
	prob)

Arguments

x

Numeric vector of values from the comparison group (e.g., scale scores from grade 3 math for year 1).

y

Numeric vector of values from the group of interest (e.g., scale scores from grade 3 math for year 2).

prob

Argument to specify quantile(s) to evaluate (between 0 and 1).

Details

Typical use of the function is to submit scale score or SGP data from which to calculate effect sizes (standardized differences in the two distributions at the given quantiles). This function is taken directly from the Andrey Akinshin blog from June 25, 2020 - https://aakinshin.net/posts/nonparametric-effect-size/.

Value

Function returns an effect size (numeric) vector of length prob.

Author(s)

Andrey Akinshin, Damian W. Betebenner dbetebenner@nciea.org and Adam Van Iwaarden avaniwaarden@nciea.org

Examples

	## Not run: 
		###  require(SGPdata)
		###  require(data.table)
		gammaEffectSize(
  			x = na.omit(sgpData_LONG_COVID[
					YEAR=="2019" &
					CONTENT_AREA=="ELA" &
					GRADE=="3", SCALE_SCORE]),
  			y = na.omit(sgpData_LONG_COVID[
					YEAR=="2021" &
					CONTENT_AREA=="ELA" &
					GRADE=="3", SCALE_SCORE]),
				prob = 1:9/10)
	
## End(Not run)

CenterForAssessment/cfaTools documentation built on June 2, 2022, 9:23 a.m.