Standard error and interval from an estimate and a two-sided P value

Some reports give an estimate and a P value but no interval or standard error, so a model cannot take a precision from them directly. Altman and Bland give a closed approximation for the normal test statistic z_P from a two-sided P value, then the standard error as the size of the estimate divided by z_P, ignoring its sign. The standard error takes the form of z_INB in HE-FM-AN-004 solved for its denominator, here for any estimate and fed from a reported P value, and the two limits are HE-FM-AN-001 applied to the result. For a ratio measure theta_hat is the natural log of the ratio and the limits are exponentiated, the form of HE-FM-HR-006. Cochrane reaches almost the same standard error through the exact normal value, =ABS(NORM.S.INV(P/2)) in Excel, and the approximation differs from it by at most 0.032 in z_P for P in the range 0.0001 to 0.9999 (derived on a grid).

Signature

z_P = -0.862 + sqrt(0.743 - 2.404 * log(P)); SE_P = abs(theta_hat) / z_P; L_P = theta_hat - z * SE_P; U_P = theta_hat + z * SE_P
Inputs
InputsDefinitionUnit
PTwo-sided P value reported with the estimate, as an exact valueproportion, above 0 and below 1
theta_hatReported estimate on the scale of analysis, not 0, for example a difference in proportions or the natural log of a risk ratiounit of the estimate
zStandard normal critical value of the interval wanted, 1.96 for 95%; Altman and Bland use 1.65 for 90% and 2.57 for 99%none
Output
z_PApproximate normal test statistic that corresponds to Pnone
SE_PStandard error implied by theta_hat and Punit of the estimate
L_PLower confidence limit on the scale of analysisunit of the estimate
U_PUpper confidence limit on the scale of analysisunit of the estimate

Function

Reading and reusing reported confidence intervals

Takes the standard errors behind two reported intervals, or a reported estimate with its two-sided P value, and the critical value of the level in use, and returns three things a reader needs when working from published results. These are the chance that one study's interval holds another study's estimate, the false positive rate of judging a difference by whether two intervals overlap with the interval level that would restore a chosen test level, and a standard error and interval for a result reported with a P value alone. Building an interval is already live and is not repeated here. HE-FM-AN-001 gives the Wald interval from an estimate and its standard error, HE-FM-BINOM-005 the Wald interval for a proportion, HE-FM-HR-006 the log-scale interval for a hazard ratio, HE-FM-HR-007 the standard error recovered from a reported interval for a log hazard ratio, HE-FM-AN-002 and HE-FM-AN-003 the delta-method and Fieller intervals for an ICER, and HE-FM-AN-004 the interval for incremental net benefit, whose variance across paired bootstrap replicates is HE-FM-BSE-003. The z statistic for a difference between two independent estimates has the form of the third part of HE-FM-NMA-003. Notation follows the Confidence Interval article.

Try this function

Implementations

  • Excel

    Excel standard error and limits from an estimate and a P value

    With the estimate in a cell named EstimateReported, the P value in PValueReported and the critical value in CritValue, the formulas return the statistic in ZFromP, the standard error in StdErrFromP and the limits in LowerFromP and UpperFromP. For a ratio measure enter =LN(ratio) as the estimate and exponentiate the limits with =EXP(LowerFromP) and =EXP(UpperFromP). A blank or zero PValueReported returns #NUM! from LN. A blank or zero EstimateReported returns a standard error of 0 and two limits of 0, so a blank estimate shows no error.

    =-0.862+SQRT(0.743-2.404*LN(PValueReported)); =ABS(EstimateReported)/ZFromP; =EstimateReported-CritValue*StdErrFromP; =EstimateReported+CritValue*StdErrFromP

Assumptions

  • P value from a normal test of the estimate against its standard error

    The P value comes from dividing the estimate by its standard error and comparing the result with a standard normal distribution, the Wald test on which Cochrane rests its method, and the handbook warns that with other tests the estimated standard errors may not coincide exactly with the true ones. Altman and Bland state that all P values are two sided.

  • Large enough sample for the normal approximation

    Altman and Bland state that the method is not correct in small samples where a continuous outcome was analysed by a t test or analysis of variance, or a dichotomous outcome by an exact method, and that it is approximately correct in larger studies with, say, 60 patients or more. Cochrane sends P values from t tests to its own section on continuous outcomes.

  • Natural logs and a log scale for ratio measures

    All logarithms are natural, as Altman and Bland state, and the function log in the calculator is the natural log. For a risk ratio, odds ratio or hazard ratio theta_hat is the log ratio, and exponentiating L_P and U_P gives the limits on the natural scale.

  • Non-zero estimate and a P value away from 1

    The formula needs an estimate different from zero, since a zero estimate gives a zero standard error whatever its true size (derived). The approximation weakens near a P value of 1. At P = 0.9 z_P is 0.136 against an exact 0.126, a standard error about 7.7% too small, while for P in the range 0.0001 to 0.5 the gap in z_P stays within about 2.4% of the exact value. Above about P = 0.99998 z_P is zero or negative and the result has no meaning (all derived on a grid).

Worked examples

  • Zinc trial with a difference in proportions

    The example of Altman and Bland, a reported 49% against 32% with P = 0.032, a difference of 17 percentage points. They obtain z 2.141, a standard error of 7.940 and a 95% interval of 1.4 to 32.6 percentage points.

    theta_hat = 17; P = 0.032; z = 1.96; z_P = 2.1409; SE_P = 7.9405; L_P = 1.4367; U_P = 32.5633
  • Cohort relative risk on the log scale

    The second example of Altman and Bland, a relative risk of 0.30 with P = 0.034. With the log of 0.30 taken as -1.204, they obtain z 2.117, a standard error of 0.569 and log-scale limits of -2.319 to -0.089, which exponentiate to a 95% interval of 0.10 to 0.91 around 0.30.

    theta_hat = -1.204; P = 0.034; z = 1.96; z_P = 2.1166; SE_P = 0.5688; L_P = -2.3189; U_P = -0.0891
  • Risk difference from the Cochrane Handbook

    The handbook example of a risk difference of 0.03 with P = 0.008. The handbook gives the exact Z as 2.652 and a standard error of 0.011, and the approximation returns the same to the digits shown there.

    theta_hat = 0.03; P = 0.008; z = 1.96; z_P = 2.6523; SE_P = 0.0113; L_P = 0.0078; U_P = 0.0522
  • Estimate exactly at the 5% level returns a limit near zero

    A limiting case that checks an implementation, with illustrative inputs. An estimate of 1.96 with a two-sided P value of 0.05 has a standard error of about 1 and a 95% interval whose lower limit sits at zero, which is the link between the test and the interval. The approximation returns -0.0034 in place of exactly zero (computed here).

    theta_hat = 1.96; P = 0.05; z = 1.96; z_P = 1.9566; SE_P = 1.0017; L_P = -0.0034; U_P = 3.9234

Common errors

  • Treating an inequality such as P below 0.001 as exact

    Altman and Bland note that setting P equal to the value it is less than makes the statistic too small, so the standard error is too large and the interval too wide. For an estimate of 1 reported as P below 0.001 with a true value of 0.00001, the interval is 0.41 to 1.59 in place of 0.56 to 1.44 (computed here with illustrative figures). A model that takes the standard error from it overstates the uncertainty (derived).

  • Using P = 0.05 for a result reported as not significant

    Altman and Bland warn that with P above 0.05 the method applied at P = 0.05 gives an interval that is too narrow. For an estimate of 1 with a true P value of 0.30, the interval comes out as about 0 to 2.00 in place of -0.88 to 2.88 (computed here with illustrative figures). A result reported only as not significant gives no usable standard error.

  • Ratio measure entered on the natural scale

    Entering the relative risk of 0.30 directly with P = 0.034 gives a standard error of 0.1417 and limits of about 0.02 to 0.58 in place of 0.10 to 0.91 (derived). The test is on the log scale, so the estimate has to be too.

  • Base 10 logarithm in the statistic

    Altman and Bland use natural logarithms. Using a base 10 logarithm for P = 0.032 gives z_P of 1.22 in place of 2.14, a standard error of 13.93 in place of 7.94 and an interval of -10.3 to 44.3 in place of 1.4 to 32.6, so a significant result appears not to be (derived).

  • One-sided P value entered as two-sided

    The formula takes a two-sided P value. Entering half of the zinc trial value, 0.016, gives a standard error of 7.06 in place of 7.94 and an interval of 3.2 to 30.8 in place of 1.4 to 32.6, so the precision is overstated (derived).

  • Normal form used after a small t test

    For the zinc trial estimate and P value, a t test on 20 degrees of freedom would imply a standard error of 7.37 and a half-width of 15.38, against 7.94 and 15.56 from the normal form (computed here with illustrative degrees of freedom). Altman and Bland exclude this small-sample case, and the Cochrane Handbook handles it with t values in its section on continuous outcomes.

Sources

  • Altman and Bland on the confidence interval from a P value

    Altman DG, Bland JM. How to obtain the confidence interval from a P value. BMJ. 2011;343:d2090. The box headed Steps to obtain the confidence interval gives z = -0.862 + sqrt[0.743 minus 2.404 log(P)], SE = Est / z ignoring minus signs, and Est plus and minus 1.96 SE, with the log transformation for a ratio, and notes that all P values are two sided, all logarithms natural, and that 1.65 and 2.57 replace 1.96 for 90% and 99% intervals. The text gives the two examples used here, and sections Limitations of the method and P values presented as inequalities give the small-sample and inequality warnings.

    View source →

  • Cochrane Handbook on standard errors from P values

    Higgins JPT, Li T, Deeks JJ (editors). Chapter 6: Choosing effect measures and computing estimates of effect (last updated August 2023). In: Cochrane Handbook for Systematic Reviews of Interventions, version 6.5. Cochrane; 2024. Section 6.3.1 derives a standard error by dividing the estimate by the Z value that corresponds to an exact P value, assuming the P value comes from dividing the estimate by its standard error and comparing with a standard normal distribution. Its example is a risk difference of 0.03 with P = 0.008, Z 2.652 and a standard error of 0.011, and it gives the Excel entry =abs(normsinv(0.008/2)). Section 6.3.2 applies the same process to ratio measures on the natural log scale.

    View source →

Canonical Identity

Stable URI · Machine-readable · Resolvable · CC BY 4.0

This formula 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/formula/standard-error-and-interval-from-an-estimate-and-a-two-sided-p-value

Standard error and interval from an estimate and a two-sided P value | HealthEconomics.wiki