Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jul;44(15-17):e70194.
doi: 10.1002/sim.70194.

A Simple Diagnostic for the Positivity Assumption for Continuous Exposures

Affiliations

A Simple Diagnostic for the Positivity Assumption for Continuous Exposures

Erica E M Moodie et al. Stat Med. 2025 Jul.

Abstract

The positivity or experimental treatment assignment assumption is a fundamental requirement in causal analyses, invoked to ensure that identifiability holds without extrapolating beyond what the observed data can reveal. Positivity is well understood in the context of binary and categorical treatments, and has been thoroughly discussed-from how the assumption can be assessed to approaches that may be used when the assumption is suspected not to hold. Positivity extends to the context of continuous exposures, such as doses, however it has been given very little formal consideration. In this manuscript, we propose a method for assessing whether the positivity assumption is violated in a given dataset, relying on a principled concept in regression analysis. We demonstrate the diagnostic tool in various simulated settings, as well as in an application involving warfarin dosing.

Keywords: causal inference; dose; experimental treatment assignment assumption; generalized propensity score; hat‐value.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflicts of interest.

Figures

FIGURE 1
FIGURE 1
Depictions of linear regression for an outcome y with (a) one variable, (b) two variables, one of which is binary, and (c) and (d) two continuous variables. In each plot, the pink square indicates a point where prediction could be made without extrapolation (although may require some interpolation), whereas the blue and cyan triangles are points where extrapolation may occur. (a) A single predictor, x. (b) Two predictors, x (continuous) and z (binary). (c) Two continuous, correlated predictors. (d) Bivariate plot of predictors in (c).
FIGURE 2
FIGURE 2
An illustration of two scenarios with a continuous dose d and two confounders x1 and x2, each of which following a uniform distribution. The plots in the two panels depict the relations in a setting (a) without and (b) with positivity violations. The bottom row displays scatter plots between d and each respective confounder in the two settings. The top row illustrates the joint behavior of the variables, with the upper left graph showing d versus (x1,x2), and the upper right quadrant, the joint behavior of the confounders (x1,x2). Note that here, positivity requires that the space defined by the jointly observable confounders (x1,x2) be filled over the range of the exposure d; the joint distribution of only the confounders need not cover the square defined by the product of the range of x1 and x2. (a) No positivity violation. (b) Positivity violation.
FIGURE 3
FIGURE 3
Left column: scatter plots of d versus x, with original data points depicted by grey circles and the candidate values as cyan triangles. Right column: density plot of ϕ^0 computed under a null scenario assuming d follows a uniform (solid grey) or normal (solid black) distribution, or by randomly sampling with (dashed black) or without (dotted black) replacement from the empirical dose distribution; the observed ϕ^ is marked by a cyan X. The first row displays the results from a setting with no positivity violations, whereas the second row provides results from a setting where positivity violations are present. (a) No positivity violation. (b) No positivity violation. (c) Positivity violation. (d) Positivity violation.
FIGURE 4
FIGURE 4
Left column: scatter plots of d versus x, with original data points depicted by grey circles and the candidate values as cyan triangles. Middle column: results when candidate points are taken at the 5th, 50th, and 95th percentiles of the dose distribution; the density plot of ϕ^0 is computed under a null assuming d follows a uniform (solid grey) or normal (solid black) distribution, or by randomly sampling with (dashed black) or without (dotted black) replacement from the empirical dose distribution, with the observed ϕ^ marked by a cyan X. Right column: same as the middle, but candidate points restricted to only the 50th percentile of the dose distribution (in this setting, all density plots coincide and thus cannot be distinguished). The first row displays the results from a setting with no positivity violations, whereas the second row provides results from a setting where positivity violations are present. (a) No positivity violation. (b) No positivity violation. (c) No positivity violation. (d) Positivity violation. (e) Positivity violation. (f) Positivity violation.
FIGURE 5
FIGURE 5
Scatter plots of d versus x: original data points (left), weighted by normalized inverse density of exposure weights (middle), and weighted by normalized inverse probability of exposure weights estimated from a multinomial logistic regression fit to quintiles of the exposure distribution (right). (a) Original data, (b) weighting by inverse density, and (c) weighting by inverse probability.
FIGURE 6
FIGURE 6
The International Warfarin Pharmacogenetics Consortium data: (a) a histogram of doses, (b) a normal QQ plot of doses, and (c) the hat‐value diagnostic, with ϕ^ marked by a cyan X and the density of ϕ^0 under the assumption of a normally distributed dose (solid line) with no positivity violations or under random sampling from the empirical exposure distribution with (dashed line) or without (dotted line) replacement.

References

    1. Wei Y., Yazdi M. D., Di Q., et al., “Emulating Causal Dose‐Response Relations Between Air Pollutants and Mortality in the Medicare Population,” Environmental Health 20 (2021): 53. - PMC - PubMed
    1. Hudson A., Geng E. H., Odeny T. A., Bukusi E. A., Petersen M. L., and van der Laan M. J., “An Approach to Nonparametric Inference on the Causal Dose–Response Function,” Journal of Causal Inference 12 (2024): 20240001, 10.1515/jci-2024-0001. - DOI
    1. Rosenbaum P. R. and Rubin D. B., “The Central Role of the Propensity Score in Observational Studies for Causal Effects,” Biometrika 70 (1983): 41–55.
    1. Rubin D. B., “Estimating Causal Effects of Treatments in Randomized and Nonrandomized Studies,” Journal of Education & Psychology 66, no. 5 (1974): 688–701.
    1. Holland P. W., “Statistics and Causal Inference,” Journal of the American Statistical Association 81, no. 396 (1986): 945–960.

LinkOut - more resources