collaboration, confidence interval, effect size, open educational resource, open scholarship, open science
Occasionally researchers would like to compare the variations between two conditions or groups rather than the mean. Two commonly used effect sizes are the natural logarithm of the variability ratio (\(LVR\)) and the coefficient of variance ratio (\(LCVR\)). The latter of these can be useful when there may be a mean-variance relationship present (i.e., variances tend to increase with mean values). An \(LVR\) or \(LCVR\) of zero therefore would indicate no difference in variation between the two groups, an \(LVR\) or \(LCVR\) of >0 would indicate larger variance in group A, and an \(LVR\) or \(LCVR\) of <0 would indicate larger variance in group B (reference group). There are both independent and dependent versions of these effect sizes (see Senior, Viechtbauer, and Nakagawa 2020). To obtain confidence intervals of the \(LVR\) or \(LCVR\), we multiply the standard error of \(LVR/LCVR\) by 1.96 similarly to other effect size statistics,
\(LCVR_\text{ind}\) - Natural Logarithm of coefficient variation ratio for independent groups
Used to compare the variation between two groups. More useful than a variability ratio (\(LVR_\text{ind}\)) when there is a relationship between the mean and variance.
\(LCVR_\text{dep}\) - Natural Logarithm of coefficient variation ratio for dependent groups
Used to compare the variation between paired groups (i.e., repeated measures). More useful than a variability ratio (\(LVR_\text{dep}\)) when there is a relationship between the mean and variance.
11.1.1 Natural Logarithm of Variability Ratio for Independent Groups (\(LVR_\text{ind}\))
The variability ratio for independent groups (denoted as group \(A\) and group \(B\)) can be calculated by taking the natural logarithm of the standard deviation within one group divided by the standard deviation in another group,
A \(LVR\) of zero therefore would indicate no difference in variation between the two groups, a \(LVR\) of >0 would indicate larger variance in group A, and \(LVR\) of <0 would indicate larger variance in group B. The standard error of the LVR can be calculated as,
In R, we can use the escalc() function from the metafor package (Viechtbauer 2010) as follows:
library(metafor)# Example:# Group A: standard deviation = 4.5, sample size = 50# Group B: standard deviation = 3.5, sample size = 50# calculate the variability ratioLVRind <-escalc(measure ="VR",sd1i =4.5,sd2i =3.5,n1i =50,n2i =50,var.names =c("LVRind","variance") )# display resultssummary(LVRind)
LVRind variance sei zi pval ci.lb ci.ub
1 0.2513 0.0204 0.1429 1.7592 0.0785 -0.0287 0.5313
From the example, we obtain a natural log variability ratio of \(LVR_\text{ind}\) = 0.25 95% CI [-0.03, 0.53].
11.1.2 Natural Logarithm of Variability Ratio for Dependent Groups (\(LVR_\text{dep}\))
The variability ratio for dependent groups (denoted as groups 1 and 2; e.g., pre-post comparisons) can similarly be calculated by taking the natural logarithm of the standard deviation within one group divided by the standard deviation in another group,
Note, the correction factor is irrelevant due to the fact that the conditions will have the same sample size (\(n=n_1=n_2\)). The standard error for which can be calculated as,
LVRdep variance sei zi pval ci.lb ci.ub
1 0.2513 0.0171 0.1309 1.9194 0.0549 -0.0053 0.5079
The output shows a \(LVR_\text{dep}\) of 0.25 95% CI [-0.01, 0.51].
11.2 Coefficient of Variation Ratios
11.2.1 Natural Logarithm of Coefficient of Variation Ratio for independent groups (LCVR_)
The coefficient of variation ratio for independent groups can be calculated by taking the natural logarithm of the coefficient of variation within one group divided by the coefficient of variation in another group,
Where \(CV_A =S_A / M_A\), \(CV_B =S_B / M_B\), and \(M\) indicates the mean of the respective group. The correction factor, \(CF\), is a small sample size bias correction factor that combines that from the \(LRR\) (presented earlier) and the \(LVR\) calculated as,
\[
CF=\frac{1}{2(n_A-1)}-\frac{1}{2(n_B-1)} + \frac{S_A^2}{2(n_AM_A^2)} + \frac{S_B^2}{2(n_BM_B^2)}
\tag{11.9}\] In R, we can use the escalc() function from the metafor package as follows:
# Example:# Group A: mean = 22.4, standard deviation = 4.5, sample size = 50# Group B: mean = 20.1, standard deviation = 3.5, sample size = 50# calculate variability ratioLCVRind <-escalc(measure ="CVR",m1i =22.4,m2i =20.1,sd1i =4.5,sd2i =3.5,n1i =50,n2i =50,var.names=c("LCVRind", "variance"))summary(LCVRind)
LCVRind variance sei zi pval ci.lb ci.ub
1 0.1430 0.0218 0.1477 0.9679 0.3331 -0.1466 0.4325
The output shows a \(LCVR_\text{ind}\) of 0.14 95% CI [-0.15, 0.43].
11.2.2 Natural Logarithm of Coefficient of Variation Ratio for independent groups (\(LCVR_\text{dep}\))
The coefficient of variation ratio for dependent groups can be similarly calculated by taking the natural logarithm of the coefficient of variation within one group divided by the coefficient of variation in another group,
In R, we can simply use the metafor packages escalc() function as follows:
# Example:# Group 1: standard deviation = 4.5# Group 2: standard deviation = 3.5# Sample size = 50# Correlation = 0.4# calculate coefficient of variability ratioLCVRdep <-escalc(measure ="CVRC",m1i =22.4,m2i =20.1,sd1i =4.5,sd2i =3.5,ni =50,ri = .40,var.names =c("LCVRdep", "variance"))# display resultssummary(LCVRdep)
LCVRdep variance sei zi pval ci.lb ci.ub
1 0.1430 0.0180 0.1342 1.0658 0.2865 -0.1200 0.4059
The output shows a \(LCVR_\text{dep}\) of 0.14 95% CI [-0.12, 0.41].
Senior, Alistair M., Wolfgang Viechtbauer, and Shinichi Nakagawa. 2020. “Revisiting and Expanding the Meta-Analysis of Variation: The Log Coefficient of Variation Ratio.”Research Synthesis Methods 11 (4): 553–67. https://doi.org/10.1002/jrsm.1423.
Viechtbauer, Wolfgang. 2010. “Conducting Meta-Analyses in R with the metafor Package.”Journal of Statistical Software 36 (3): 1–48. https://doi.org/10.18637/jss.v036.i03.