Signature
MD_f = g_hat * S_f; L_f = L_g * S_f; U_f = U_g * S_f
| Inputs | Definition | Unit |
|---|---|---|
g_hat | Pooled standardised mean difference, usually Hedges' g pooled by inverse variance | standard deviation units |
S_f | Standard deviation of scores on the familiar instrument, above zero | instrument points |
L_g | Lower confidence limit of g_hat | standard deviation units |
U_g | Upper confidence limit of g_hat | standard deviation units |
MD_f | Pooled effect in points of the familiar instrument | instrument points |
|---|---|---|
L_f | Lower confidence limit in points of the familiar instrument | instrument points |
U_f | Upper confidence limit in points of the familiar instrument | instrument points |
Function
Standardised mean difference family by choice of standardiser, with re-expression in instrument points
Maps a difference between two group means, or between two prevalences of a baseline covariate, and a chosen standard deviation S to a value in standard deviation units, and maps a pooled value back to points on a familiar instrument. The members of the family differ only in S. The pooled standard deviation form is Cohen's d, HE-FM-CD-001. Its small-sample corrected form, the standardised mean difference of Cochrane reviews, is HE-FM-HEDG-001 with the standard error HE-FM-HEDG-003. Pooling across studies is HE-FM-ADMA-001 or HE-FM-ADMA-005, the interval is HE-FM-AN-001 and the logistic conversion to a log odds ratio is HE-FM-CD-002. None of these is restated here. This package adds the standardisers those records lack, namely the comparator group standard deviation, an external standard deviation and the square root of the average of the two group variances used for covariate balance, together with the re-expression step. The mean difference itself belongs on the Mean Difference page. Notation follows the Standardised Mean Difference article.
Computational function
Computational function for a three-trial pooled standardised mean difference re-expressed in points of a familiar instrument
Takes the summary data three trial reports give, on three different instruments, and returns the pooled standardised mean difference, its interval and the same result in points of a familiar instrument, the procedure of the article's worked example. For each trial it chains the pooled standard deviation and d of HE-FM-CD-001, the small-sample factor of HE-FM-HEDG-001 (written with 4N less 9, the same factor at m = N less 2) and the standard error of HE-FM-HEDG-003. It then pools by the inverse variance of HE-FM-ADMA-001 under a common effect, takes the limits of HE-FM-AN-001 and re-expresses all three values by HE-FM-SMD-003. The inputs therefore differ from the symbols of HE-FM-SMD-003. For random effects, HE-FM-ADMA-004 and HE-FM-ADMA-005 replace the pooling step.
Inputs and outputs:
m1_A,m2_A,s1_A,s2_A,n1_A,n2_Aare the two group means, standard deviations and sizes of trial A, and likewise for trials B and C, all oriented the same way; means in instrument points, sizes at least 2 per group, and the pooled standard deviation above zero.zis the normal quantile, 1.96 for 95%.S_fis the standard deviation of the familiar instrument, in its points. The chain returnsN,sp,g,seandwfor each trial, the total weightW, the pooledg_hatandSE_hat, the limitsL_gandU_g, andMD_f,L_fandU_fin instrument points. The R and Python code take vectors or lists of any length.Assumption: As in HE-AS-SMD-005 and HE-AS-SMD-006 for the re-expression, and HE-AS-ADMA-001 for the common effect. The Cochrane Handbook adds that standardising is appropriate only if between-study variation in standard deviations reflects differences in measurement scales, not in the reliability of the instruments or the variability of the populations, and that post-intervention values and change scores should not in principle be combined as standardised mean differences.
Worked example (article's three fatigue trials): All inputs are illustrative. With
m1_A = 62; m2_A = 55; s1_A = 18; s2_A = 20; n1_A = 40; n2_A = 40; m1_B = 4.6; m2_B = 4.2; s1_B = 1.1; s2_B = 1.2; n1_B = 60; n2_B = 60; m1_C = 36; m2_C = 33; s1_C = 10; s2_C = 11; n1_C = 100; n2_C = 100; z = 1.96; S_f = 19.03the chain givesg_A = 0.3644; se_A = 0.2255; w_A = 19.6569; g_B = 0.3453; se_B = 0.1840; w_B = 29.5448; g_C = 0.2843; se_C = 0.1421; w_C = 49.4899; W = 98.6916; g_hat = 0.3185; SE_hat = 0.1007; L_g = 0.1212; U_g = 0.5158; MD_f = 6.06; L_f = 2.31; U_f = 9.82. The article shows the pooled value as 0.3185, the interval as 0.12 to 0.52, and the gain as 6.1 points with limits of 2.3 and 9.8.Worked example (pragmatic trial C): The article's step 4 gives trial C a pooled standard deviation of 14 instead of 10.51. With
s1_C = 14; s2_C = 14and the other inputs as above the chain givesg_C = 0.2135; w_C = 49.7111; W = 98.9128; g_hat = 0.2828; SE_hat = 0.1005, so the pooled value falls to the article's 0.28, against 0.32, with trial C's 3-point difference unchanged.Excel: Put one trial per row in rows 2 to 4, with the two means in columns A and B, the two standard deviations in C and D and the two sizes in E and F. Enter in row 2 and fill down
=E2+F2in G (total size),=SQRT(((E2-1)*C2^2+(F2-1)*D2^2)/(G2-2))in H (pooled standard deviation),=(A2-B2)/H2*(1-3/(4*G2-9))in I (corrected g),=SQRT(G2/(E2*F2)+I2^2/(2*(G2-3.94)))in J (standard error) and=1/J2^2in K (weight). Then enter=SUMPRODUCT(K2:K4,I2:I4)/SUM(K2:K4)in a cell named PooledSMD,=SQRT(1/SUM(K2:K4))in SEPooledSMD,=PooledSMD-ZValue*SEPooledSMDin SMDLower,=PooledSMD+ZValue*SEPooledSMDin SMDUpper, and use the formulas of HE-IM-SMD-003 for PointsGain, PointsLower and PointsUpper with SDFamiliar.R:
smd_pool <- function(m1, m2, s1, s2, n1, n2, S_f, z = 1.96) { N <- n1+n2; sp <- sqrt(((n1-1)*s1^2+(n2-1)*s2^2)/(N-2)); g <- (m1-m2)/sp*(1-3/(4*N-9)); se <- sqrt(N/(n1*n2)+g^2/(2*(N-3.94))); w <- 1/se^2; g_hat <- sum(w*g)/sum(w); se_hat <- sqrt(1/sum(w)); L <- g_hat-z*se_hat; U <- g_hat+z*se_hat; list(g=g, se=se, w=w, g_hat=g_hat, se_hat=se_hat, L_g=L, U_g=U, MD_f=g_hat*S_f, L_f=L*S_f, U_f=U*S_f) }Returns a named list. A single trial returns its own g and standard error as the pooled values; a pooled standard deviation of zero gives Inf or NaN.Python:
def smd_pool(m1, m2, s1, s2, n1, n2, S_f, z=1.96): N = [a+b for a, b in zip(n1, n2)]; sp = [math.sqrt(((a-1)*c**2+(b-1)*d**2)/(t-2)) for a, b, c, d, t in zip(n1, n2, s1, s2, N)]; g = [(x-y)/p*(1-3/(4*t-9)) for x, y, p, t in zip(m1, m2, sp, N)]; se = [math.sqrt(t/(a*b)+e**2/(2*(t-3.94))) for t, a, b, e in zip(N, n1, n2, g)]; w = [1/e**2 for e in se]; W = sum(w); g_hat = sum(a*b for a, b in zip(w, g))/W; se_hat = math.sqrt(1/W); L = g_hat-z*se_hat; U = g_hat+z*se_hat; return {"g": g, "se": se, "w": w, "g_hat": g_hat, "se_hat": se_hat, "L_g": L, "U_g": U, "MD_f": g_hat*S_f, "L_f": L*S_f, "U_f": U*S_f}Requires the math module and returns a dictionary with the same values as the R function. A single trial returns its own g and standard error as the pooled values; a pooled standard deviation of zero raises ZeroDivisionError, and such a trial has no standardised mean difference.Test (article's pooled figures): With the three trials above, ZValue 1.96 and SDFamiliar 19.03, the model's PooledSMD cell is within 0.00005 of 0.3185, SEPooledSMD within 0.00005 of 0.1007, and PointsGain within 0.005 of 6.06. Expected result TRUE. FALSE shows a missing weight, which as an unweighted mean of the three g values gives about 0.3313, or a PooledSMD cell doubled or halved. Excel check
=AND(ABS(PooledSMD-0.3185)<0.00005,ABS(SEPooledSMD-0.1007)<0.00005,ABS(PointsGain-6.06)<0.005)Test (pragmatic trial C): With both standard deviations of trial C set to 14, the model's PooledSMD cell is within 0.00005 of 0.2828. Expected result TRUE. FALSE shows that trial C's standard deviations are not reaching its row, in which case the cell stays near 0.3185, or a cell doubled or halved. Excel check
=ABS(PooledSMD-0.2828)<0.00005Common error (standard error form): Using SE_g of HE-FM-HEDG-002 in place of HE-FM-HEDG-003 gives a total weight of about 99.86 in place of 98.69 and a pooled value of about 0.31866 in place of 0.31851, computed here for illustration. The difference is small, but the article's weights and Cochrane forest plots then cannot be reproduced.
Source: Deeks JJ, Higgins JPT, on behalf of the Cochrane Statistical Methods Group. Statistical algorithms in Review Manager. Cochrane; May 2022. Section Standardized difference in means (standardized mean difference), page 3, for the corrected estimate and its standard error, and section Inverse-variance methods for combining results across studies for the weights. The assumption on standard deviations and on mixing outcome types is Deeks JJ, Higgins JPT, Altman DG, McKenzie JE, Veroniki AA, Simmonds M (editors), chapter 10 (last updated November 2026) of the Cochrane Handbook version 6.5.1, Cochrane; 2026, sections 10.5.1 and 10.5.2. The re-expression is Cochrane Handbook section 15.5.3.2 (HE-SR-SMD-004).
N_A = n1_A + n2_A; sp_A = sqrt(((n1_A - 1) * s1_A^2 + (n2_A - 1) * s2_A^2) / (N_A - 2)); g_A = (m1_A - m2_A) / sp_A * (1 - 3 / (4 * N_A - 9)); se_A = sqrt(N_A / (n1_A * n2_A) + g_A^2 / (2 * (N_A - 3.94))); w_A = 1 / se_A^2; N_B = n1_B + n2_B; sp_B = sqrt(((n1_B - 1) * s1_B^2 + (n2_B - 1) * s2_B^2) / (N_B - 2)); g_B = (m1_B - m2_B) / sp_B * (1 - 3 / (4 * N_B - 9)); se_B = sqrt(N_B / (n1_B * n2_B) + g_B^2 / (2 * (N_B - 3.94))); w_B = 1 / se_B^2; N_C = n1_C + n2_C; sp_C = sqrt(((n1_C - 1) * s1_C^2 + (n2_C - 1) * s2_C^2) / (N_C - 2)); g_C = (m1_C - m2_C) / sp_C * (1 - 3 / (4 * N_C - 9)); se_C = sqrt(N_C / (n1_C * n2_C) + g_C^2 / (2 * (N_C - 3.94))); w_C = 1 / se_C^2; W = w_A + w_B + w_C; g_hat = (w_A * g_A + w_B * g_B + w_C * g_C) / W; SE_hat = sqrt(1 / W); L_g = g_hat - z * SE_hat; U_g = g_hat + z * SE_hat; MD_f = g_hat * S_f; L_f = L_g * S_f; U_f = U_g * S_f
Try this function
Implementations
Excel
Instrument points and limits from a pooled standardised mean difference
With named input cells PooledSMD, SMDLower, SMDUpper and SDFamiliar, the formulas return the effect in a cell named PointsGain and the limits in cells named PointsLower and PointsUpper.
=PooledSMD*SDFamiliar; =SMDLower*SDFamiliar; =SMDUpper*SDFamiliar
Assumptions
Choice of the standard deviation for the familiar instrument
The Handbook says a reasonable option is a weighted average across all intervention groups of all studies that used the selected instrument, preferably a pre-intervention or post-intervention standard deviation. A standard deviation from a representative observational study may be preferable to reflect among-person variation in practice, or for an instrument not represented in the meta-analysis.
Familiar instrument standard deviation held fixed in the re-expressed interval
The interval scales the limits of g_hat by a constant, so it carries the uncertainty in g_hat and none in S_f (derived). The article advises stating the external standard deviation and varying it in sensitivity analysis, as HE-EX-SMD-006 does.
Worked examples
Article's three fatigue trials re-expressed on the 0 to 100 scale
The article's illustrative pooled value of 0.3185, with limits of 0.1212 and 0.5158 from the unrounded calculation of the Computational Function, multiplied by trial A's pooled standard deviation of 19.03. The gain is about 6.06 points with limits of about 2.31 and 9.82, which the article shows as 6.1, 2.3 and 9.8. Against an illustrative minimal important difference of 10 points, even the upper limit falls short.
g_hat = 0.3185; L_g = 0.1212; U_g = 0.5158; S_f = 19.03; MD_f = 6.06; L_f = 2.31; U_f = 9.82
Larger illustrative standard deviation from an observational study
The same pooled value with an illustrative standard deviation of 24 from a broader observational population, not a figure from the article. The gain rises to about 7.64 points and the upper limit to about 12.38, so the reading against a 10-point difference changes with the choice of S_f.
g_hat = 0.3185; L_g = 0.1212; U_g = 0.5158; S_f = 24; MD_f = 7.64; L_f = 2.91; U_f = 12.38
No pooled effect re-expressed in points
Limiting case computed here for illustration. A pooled value of zero gives zero points whatever the standard deviation, with limits of plus and minus 3.81 points when the standardised limits are plus and minus 0.2.
g_hat = 0; L_g = -0.2; U_g = 0.2; S_f = 19.03; MD_f = 0; L_f = -3.81; U_f = 3.81
Common errors
Standard error of the mean used as the familiar instrument standard deviation
In the article's trial A the standard error of one arm's mean is about 19.03 over the square root of 40, or 3.009. Multiplying 0.3185 by that gives about 0.96 points in place of 6.06, computed here for illustration.
Bare standardised value read against a minimal important difference in points
The article's 0.32 cannot be compared with a 10-point minimal important difference until it is re-expressed. Once it is, a value below the minimal important difference is still not proof of no benefit, because the Handbook warns that a substantial proportion of patients may have achieved an important benefit (HE-SR-MCID-010).
Sources
Cochrane Handbook on re-expressing a standardised mean difference with a familiar instrument
Schünemann HJ, Vist GE, Higgins JPT, Santesso N, Deeks JJ, Glasziou P, Akl EA, Guyatt GH. Chapter 15: Interpreting results and drawing conclusions. In: Higgins JPT, Thomas J, Chandler J, Cumpston M, Li T, Page MJ, Welch VA (editors). Cochrane Handbook for Systematic Reviews of Interventions version 6.5. Cochrane; 2024. Section 15.5.3.2, Re-expressing SMDs using a familiar instrument, which calculates an absolute difference in means by multiplying the SMD by an estimate of the standard deviation associated with the most familiar instrument and sets out the two sources of that standard deviation.
Cochrane Handbook table with a standardised mean difference rescaled to a pain scale
Schünemann HJ, Vist GE, Higgins JPT, Santesso N, Deeks JJ, Glasziou P, Akl EA, Guyatt GH. Chapter 15: Interpreting results and drawing conclusions. In: Higgins JPT, Thomas J, Chandler J, Cumpston M, Li T, Page MJ, Welch VA (editors). Cochrane Handbook for Systematic Reviews of Interventions version 6.5. Cochrane; 2024. Table 15.5.b, rows 1a and 1b, where an SMD of 0.79 (95% CI -1.41 to -0.17) is rescaled to a 0 to 100 pain scale and reported as 8.1 (1.8 to 14.5) lower, with a minimal important difference of approximately 10.
Canonical Identity
Stable URI · Machine-readable · Resolvable · CC BY 4.0
