Functions & Formulae

Each applied formula has its own function page, with a signature, implementations, and tests.

Standardised mean difference family by choice of standardiser, with re-expression in instrument points

smd(xbar_1, xbar_2, S) = d_S

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.

  • Glass's delta from two group means and the comparator group standard deviation

    Delta_G = (xbar_1 - xbar_2) / s_2

    Divides the difference between two observed group means by the standard deviation of the comparator group alone, in place of the pooled standard deviation of HE-FM-CD-001. The Cochrane Handbook gives the reason, that an intervention which changes between-person variation should not influence the effect estimate through that change. For a non-zero difference in means and group sizes of at least 2, the value equals Cohen's d only when the two group standard deviations are equal (derived). The small-sample factor J of HE-FM-HEDG-001 takes the same form here, with m the comparator group size less 1 as HE-AS-HEDG-002 records, in place of the total sample size less 2 in that record's first step.

  • Standardised mean difference and its standard error from an external standard deviation

    d_E = MD / S_E; SE_E = SE_MD / S_E

    Divides both a study's mean difference and its standard error by a standard deviation taken from outside the study, for example a cross-sectional analysis of many individuals on the same outcome measure. The Cochrane Handbook offers this for the problems of estimating standard deviations within small studies and of real differences across studies in between-person variability. Treating the external value as known without error, the methods for mean differences apply, so the ratio of estimate to standard error is unchanged (derived). The two inputs are the mean difference and its standard error, the second being the square root of the sum of each arm's variance over its size as HE-VR-AN-002 describes. Pooling then follows HE-FM-ADMA-001 with y_i = d_E and v_i = SE_E^2.

  • Pooled standardised mean difference re-expressed in points of a familiar instrument

    MD_f = g_hat * S_f; L_f = L_g * S_f; U_f = U_g * S_f

    Multiplies a pooled standardised mean difference by a standard deviation associated with the most familiar instrument, which gives an absolute difference in means in that instrument's own points. The limits of the interval scale by the same constant (derived; Table 15.5.b of the Cochrane Handbook shows a rescaled interval). The pooled value comes from HE-FM-ADMA-001 or HE-FM-ADMA-005 and its limits from HE-FM-AN-001. The step has the form of HE-FM-CD-001 solved for the difference in means, but g_hat pools several trials and S_f comes from the familiar instrument, so the result need not equal any one trial's difference. In the article's example S_f is trial A's pooled standard deviation, and the 6.06 points differ from that trial's own 7. The result can then be read against a minimal important difference such as HE-FM-MCID-001 gives.

  • Standardised difference of a continuous baseline covariate between treated and untreated patients

    V_cont = (s_T^2 + s_C^2) / 2; d_cont = (xbar_T - xbar_C) / sqrt(V_cont)

    Divides the difference in a covariate's mean between treated and untreated patients by the square root of the average of the two sample variances. Group sizes enter nowhere, so the value does not change with sample size in the way a test statistic does. Austin calls the denominator the pooled standard deviation, but it differs from s_p of HE-FM-CD-001, which weights each variance by its degrees of freedom. The two agree when the groups are equal in size or the two standard deviations are equal (derived, on a grid of 2,700 inputs).

  • Standardised difference of a binary baseline covariate between treated and untreated patients

    V_bin = (p_T * (1 - p_T) + p_C * (1 - p_C)) / 2; d_bin = (p_T - p_C) / sqrt(V_bin)

    Divides the difference in a binary covariate's prevalence between treated and untreated patients by the square root of the average of the two Bernoulli variances, p times (1 minus p) in each group. This is the form of HE-FM-SMD-004 with each sample variance replaced by that expression (derived). Group sizes do not appear, unlike the standard error in HE-FM-ACTR-001, so the value stays the same as a study grows. Reading against a cut-off follows HE-AS-SMD-007.

This set of formulae is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

Author: Dr Darrin Baines · Publisher: Intelligent Parameters Ltd · Identifier: https://healtheconomics.wiki/concept/standardised-mean-difference/formulae