gammaEffectSize | R Documentation |
Function for calculating non-parametric effect size for any specified quantile(s).
gammaEffectSize(
x,
y,
prob)
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). |
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/.
Function returns an effect size (numeric) vector of length prob
.
Andrey Akinshin, Damian W. Betebenner dbetebenner@nciea.org and Adam Van Iwaarden avaniwaarden@nciea.org
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.