Identifying mediating variables with graphical models: an application to the study of causal pathways in people living with HIV
Pith reviewed 2026-05-24 23:16 UTC · model grok-4.3
The pith
Graphical models on categorical HIV trial data distinguish whether weakness or fatigue mediates treatment effects.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
Graphical models fitted to contingency tables via loglinear models can identify mediating variables in causal pathways by encoding conditional independence relationships, allowing distinction between competing mediation structures such as whether weakness mediates treatment effects on fatigue or fatigue mediates effects on weakness, where causal mediation analysis remains inconclusive.
What carries the argument
Graphical models on contingency tables that represent conditional independencies to infer the direction of mediation in categorical data.
If this is right
- If the model identifies weakness as the mediator, interventions could target weakness to reduce fatigue levels in PLHIV.
- The method supplies a practical alternative for mediation questions in categorical clinical data when traditional analysis fails to decide.
- Clarifying mediation directions supports more precise symptom management strategies in HIV behavioral trials.
- The approach can be reapplied to similar contingency table datasets from other health studies with binary or categorical outcomes.
Where Pith is reading between the lines
- Incorporating time-ordering from longitudinal measurements could extend the graphs to test mediation over multiple visits.
- Sensitivity checks for unmeasured confounding could be added to strengthen confidence in the recovered direction.
- The same contingency table approach might map symptom networks in other chronic conditions with overlapping categorical measures.
- Validation would require an experiment that directly manipulates the candidate mediator and checks the predicted outcome pattern.
Load-bearing premise
The graphical model recovered from the contingency table correctly encodes the causal direction of mediation without unmeasured confounding or misspecification of the loglinear structure.
What would settle it
A new dataset or reanalysis showing a different pattern of conditional independencies that reverses the identified mediation direction would falsify the specific pathway recovered.
Figures
read the original abstract
We empirically demonstrate that graphical models can be a valuable tool in the identification of mediating variables in causal pathways. We make use of graphical models to elucidate the causal pathway through which the treatment influences the levels of fatigue and weakness in people living with HIV (PLHIV) based on a secondary analysis of a categorical dataset collected in a behavioral clinical trial: is weakness a mediator for the treatment and fatigue, or is fatigue a mediator for the treatment and weakness? Causal mediation analysis could not offer any definite answers to these questions.\\ KEYWORDS: Contingency tables; graphical models; loglinear models; HIV; mediation
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript claims to empirically demonstrate that graphical models (via loglinear models on contingency tables) can identify mediating variables in causal pathways. Applied to categorical data from a behavioral clinical trial in people living with HIV, the approach is used to resolve whether weakness mediates treatment effects on fatigue or fatigue mediates treatment effects on weakness, a distinction that standard causal mediation analysis could not make.
Significance. If the method reliably distinguishes mediation directions from observational contingency tables, it could provide a useful complement to directed causal mediation techniques in categorical-data settings. The demonstration rests on recovering conditional independence structure from a single 3-way table and interpreting it as a specific causal ordering.
major comments (1)
- [Abstract] Abstract: the claim that the fitted graphical model distinguishes the mediation direction (weakness mediating treatment→fatigue versus fatigue mediating treatment→weakness) is unsupported. Loglinear graphical models are undirected and encode only conditional independencies; mapping this structure to a directed mediation path requires untested assumptions of no unmeasured confounding between all pairs and that the selected loglinear terms match the causal factorization. Neither assumption is stated or validated.
minor comments (1)
- The manuscript supplies no equations, model-selection criteria, fitting algorithm, or cross-validation steps for the loglinear graphical model, preventing assessment of reproducibility or sensitivity to specification choices.
Simulated Author's Rebuttal
We thank the referee for the detailed and constructive report. We address the single major comment below.
read point-by-point responses
-
Referee: [Abstract] Abstract: the claim that the fitted graphical model distinguishes the mediation direction (weakness mediating treatment→fatigue versus fatigue mediating treatment→weakness) is unsupported. Loglinear graphical models are undirected and encode only conditional independencies; mapping this structure to a directed mediation path requires untested assumptions of no unmeasured confounding between all pairs and that the selected loglinear terms match the causal factorization. Neither assumption is stated or validated.
Authors: We agree that the abstract phrasing is too strong. The fitted loglinear model recovers a conditional independence (treatment ⊥ one symptom | the other) from the observed 3-way table; under the randomized treatment and the assumption that the selected interaction terms correspond to the causal factorization, this structure is consistent with one mediation ordering rather than the other. However, the manuscript does not explicitly list the required no-unmeasured-confounding assumptions between the two symptoms. We will revise the abstract to state that the graphical model identifies the conditional independence supporting a particular ordering (rather than claiming it “distinguishes the mediation direction”), and we will add a dedicated paragraph in the Methods and Discussion sections that states the additional assumptions and notes they are untestable with the available data. revision: yes
Circularity Check
No significant circularity detected; standard application of loglinear graphical models to data.
full rationale
The paper applies established loglinear graphical models to a 3-way contingency table from observational data to recover conditional independence structure and interpret it in terms of mediation. No equations, fitted parameters renamed as predictions, or self-citation chains are shown that would reduce the reported mediation direction to a tautology or input by construction. The result is an empirical fit to the observed table under standard model assumptions; the derivation chain does not loop back on itself.
Axiom & Free-Parameter Ledger
Reference graph
Works this paper leans on
-
[1]
Agresti, Categorical Data Analysis, John Wiley & Sons, New York, 1990
A. Agresti, Categorical Data Analysis, John Wiley & Sons, New York, 1990
work page 1990
-
[2]
I. Al-Dakkak, S. Patel, E. McCann, A. Gadkari, G. Prajapati, and E.M. Maiese, The impact of specific HIV treatment-related adverse events on adherence to antiretroviral therapy: a systematic review and meta-analysis , AIDS Care 25 (2012), pp. 400–414
work page 2012
-
[3]
R.M. Baron and D.A. Kenny, The moderator-mediator variable distinction in social psychological research: Conceptual, strategic, and statistical considerations , Journal of Personality and Social Psychology 51 (1986), pp. 1173–1182
work page 1986
-
[4]
J. Barroso, B.G. Hammill, J. Leserman, N. Salahuddin, J.L. Harmon, and B.W. Pence, Physiological and psychosocial factors that predict HIV-related fatigue , AIDS and behavior 14 (2010), pp. 1415– 1427
work page 2010
-
[5]
J. Barroso and J. Voss, Fatigue in HIV and AIDS: An analysis of evidence, Journal of the Association of Nurses in AIDS Care 24 (2013), pp. S5–14
work page 2013
-
[6]
K. Benamar, S. Addou, M. Yondorf, E.B. Geller, T.K. Eisenstein, and M.W. Adler, Intrahypotha- lamic injection of the HIV-1 envelope glycoprotein induces fever via interaction with the chemokine system, The Journal of Pharmacology and Experimental Therapeutics 332 (2010), pp. 549–553
work page 2010
-
[7]
Y.M.M. Bishop, S.E. Fienberg, and P.W. Holland, Discrete Multivariate Analysis: Theory and Practice, M.I.T. Press, Cambridge, MA, 1975
work page 1975
-
[8]
A. Buseh, S.T. Kelber, P.E. Stevens, and C.G. Park, Relationship of symptoms, perceived health, and stigma with quality of life among urban HV-infected African American men , Public Health Nursing 25 (2008), pp. 409–419
work page 2008
- [9]
- [10]
-
[11]
M. daCosta DiBonaventura, S. Gupta, M. Cho, and J. Mrus, The association of HIV AIDS treatment side effects with health status, work productivity, and resource use , AIDS Care 24 (2012), pp. 744– 755
work page 2012
-
[12]
M.C. Dalakas, Toxic and drug-induced myopathies, Journal of Neurology, Neurosurgery & Psychiatry 80 (2009), pp. 832–838
work page 2009
-
[13]
P. Dellaportas and J.J. Forster, Markov chain Monte Carlo model determination for hierarchical and graphical log-linear models, Biometrika 86 (1999), pp. 615–633
work page 1999
-
[14]
P. Dellaportas and C. Tarantola, Model determination for categorical data with factor level merging , Journal of the Royal Statistical Society: Series B (Statistical Methodology) 67 (2005), pp. 269–283
work page 2005
-
[15]
A. Dobra and A. Lenkoski, Copula Gaussian graphical models and their application to modeling functional disability data , Annals of Applied Statistics 5 (2011), pp. 969–993
work page 2011
-
[16]
A. Dobra and H. Massam, The mode oriented stochastic search (MOSS) algorithm for log-linear models with conjugate priors , Statistical Methodology 7 (2010), pp. 240–253
work page 2010
-
[17]
A. Dobra and A. Mohammadi, Loglinear model selection and human mobility , Annals of Applied Statistics 12 (2018), pp. 815–845
work page 2018
-
[18]
M. Duracinsky, S. Herrmann, B. Berzins, A. Armstrong, R. Kohli, S.L. Coeur, A. Diouf, I. Fournier, M. Schechter, and O. Chassany,The development of PROQOL-HIV: An international instrument to assess the health-related quality of life of persons living with HIV AIDS, Journal of Acquired Immune Deficiency Syndromes 59 (2012), pp. 498–505
work page 2012
-
[19]
D.E. Edwards and T. Havranek, A fast procedure for model search in multidimensional contingency tables, Biometrika 72 (1985), pp. 339–351
work page 1985
-
[20]
L. Estanislao, D. Thomas, and D. Simpson, HIV neuromuscular disease and mitochondrial function, Mitochondrion 4 (2004), pp. 131–139
work page 2004
-
[21]
Fienberg, The analysis of multidimensional contingency tables , Ecology 51 (1970), pp
S.E. Fienberg, The analysis of multidimensional contingency tables , Ecology 51 (1970), pp. 419–433
work page 1970
-
[22]
J. Finsterer and S.Z. Mahjoub, Fatigue in healthy and diseased individuals , American Journal of Hospice and Palliative Medicine 31 (2014), pp. 562–575
work page 2014
-
[23]
M.S. Fritz and D.P. MacKinnon,A graphical representation of the mediated effect, Behavior Research Methods 40 (2008”), pp. 55–60
work page 2008
-
[24]
M. Hidalgo, A. Camozzato, L. Cardoso, C. Preussler, C. Nunes, R. Tavares, M. Posser, and M. Chaves, Evaluation of behavioral states among morning and evening active healthy individuals , Brazilian Journal of Medical and Biological Research 35 (2002), pp. 837–842
work page 2002
-
[25]
S. Hojsgaard, D. Edwards, and S. Lauritzen, Graphical Models with R , Springer-Verlag, New York, 2012
work page 2012
-
[26]
K. Imai, L. Keele, and D. Tingley, A general approach to causal mediation analysis , Psychological Methods 15 (2010), pp. 309–334
work page 2010
-
[27]
K. Imai, D. Tingley, and T. Yamamoto, Experimental designs for identifying causal mechanisms , Journal of the Royal Statistical Society, Series A 176 (2013), pp. 5–51
work page 2013
-
[28]
L.A. Jason and C. M., Dimensions and assessment of fatigue , in Fatigue Science for Human Health, Y. Yatanabe, B. Evengard, B.H. Natelson, L.A. Jason, and H. Kuratsune, eds., Springer, Tokyo, 2008, pp. 1–16
work page 2008
- [29]
- [30]
-
[31]
E. Jong, L. Oudhoff, C. Epskamp, M. Wagener, M. van Duijn, S. Fischer, and E. van Gorp, Pre- dictors and treatment strategies of HIV-related fatigue in the combined antiretroviral therapy era , AIDS 24 (2010), pp. 1387–1405
work page 2010
-
[32]
Jordan, Graphical models, Statistical Science 19 (2004), pp
M.I. Jordan, Graphical models, Statistical Science 19 (2004), pp. 140–155
work page 2004
-
[33]
Keyser, Peripheral fatigue: High-energy phosphates and hydrogen ions , PM&R 2 (2010), pp
R.E. Keyser, Peripheral fatigue: High-energy phosphates and hydrogen ions , PM&R 2 (2010), pp. 347–358
work page 2010
-
[34]
D. Koller and N. Friedman, Probabilistic Graphical Models: Principles and Techniques , Adaptive Computation and Machine Learning series, The MIT Press, 2009
work page 2009
-
[35]
Lauritzen, Graphical Models, Clarendon Press, Oxford, UK, 1996
S. Lauritzen, Graphical Models, Clarendon Press, Oxford, UK, 1996. 16 ADRIAN DOBRA AND KATHERINE BUHIKIRE AND JOACHIM G. VOSS
work page 1996
-
[36]
V.M. Leavitt and J. DeLuca, Central fatigue: Issues related to cognition, mood and behavior, and psychiatric diagnoses, PM&R 2 (2010), pp. 332–337
work page 2010
-
[37]
J. Leserman, J. Barroso, B.W. Pence, N. Salahuddin, and J.L. Harmon, Trauma, stressful life events and depression predict HIV-related fatigue , AIDS care 20 (2008), pp. 1258–1265
work page 2008
-
[38]
D.P. MacKinnon, A.J. Fairchild, and M.S. Fritz, Mediation analysis, Annual Review of Psychology 58 (2007), pp. 593–614
work page 2007
-
[39]
D. Madigan and A. Raftery, Model selection and accounting for model uncertainty in graphical models using Occam’s window, Journal of the American Statistical Association 89 (1994), pp. 1535–1546
work page 1994
-
[40]
D. Madigan and J. York, Bayesian graphical models for discrete data , International Statistical Review 63 (1995), pp. 215–232
work page 1995
-
[41]
D. Madigan and J. York, Bayesian methods for estimation of the size of a closed population , Biometrika 84 (1997), pp. 19–31
work page 1997
-
[42]
V.C. Marconi, B. Wu, J. Hampton, C.E. Ord´ o˜ nez, B.A. Johnson, D. Singh, S. John, M. Gordon, A. Hare, R. Murphy, J. Nachega, D.R. Kuritzkes, C. del Rio, H. Sunpath, and South Africa Resis- tance Cohort Study Team Group Authors, Early warning indicators for first-line virologic failure independent of adherence measures in a South African urban clinic , AI...
work page 2013
- [43]
- [44]
-
[45]
Pearl, Causality: Models, Reasoning, and Inference , Cambridge University Press, New York, 2000
J. Pearl, Causality: Models, Reasoning, and Inference , Cambridge University Press, New York, 2000
work page 2000
- [46]
-
[47]
S.K. Powers, Exercise Physiology Theory and Application to Performance , 6th ed., McGraw Hill, Boston, MA, 2007
work page 2007
-
[48]
Available at https://www.R-project.org/
R Core Team, R: A Language and Environment for Statistical Computing , R Foundation for Sta- tistical Computing, Vienna, Austria (2018). Available at https://www.R-project.org/
work page 2018
-
[49]
N. Salahuddin, J. Barroso, J. Leserman, J.L. Harmon, and B.W. Pence, Daytime sleepiness, night- time sleep quality, stressful life events, and HIV-related fatigue , The Journal of the Association of Nurses in AIDS Care 20 (2009), pp. 6–13
work page 2009
- [50]
-
[51]
C. Tarantola, MCMC model determination for discrete graphical models , Statistical Modelling 4 (2004), pp. 39–61
work page 2004
-
[52]
A.S. Terzian, S. Holman, N. Nathwani, E. Robison, K. Weber, M. Young, R.M. Greenblatt, S.J. Gange, and Women’s Interagency HIV Study,Factors associated with preclinical disability and frailty among HIV-infected and HIV-uninfected women in the era of cART , Journal of Women’s Health 18 (2009), pp. 1965–1974
work page 2009
-
[53]
D. Tingley, T. Yamamoto, K. Hirose, L. Keele, and K. Imai, mediation: R package for causal mediation analysis, Journal of Statistical Software 59 (2014), pp. 1–38
work page 2014
- [54]
-
[55]
D.J. Wantland, J.P. Mullan, W.L. Holzemer, C.J. Portillo, S. Bakken, and E.M. McGhee, Additive effects of numbness and muscle aches on fatigue occurrence in individuals with HIV/AID who are taking antiretroviral therapy, Journal of Pain and Symptom Management 41 (2011), pp. 469–477
work page 2011
-
[56]
D.J. Wantland, W.L. Holzemer, S. Moezzi, S.S. Willard, J. Arudo, K.M. Kirksey, C.J. Portillo, I.B. Corless, M.E. Rosa, L.L. Robinson, P.K. Nicholas, M.J. Hamilton, E.F. Sefcik, S. Human, M.M. Rivero, M. Maryland, and E. Huang, A randomized controlled trial testing the efficacy of an HIV/AIDS symptom management manual , Journal of Pain and Symptom Management...
work page 2008
-
[57]
Whittaker, Graphical Models in Applied Multivariate Statistics , John Wiley & Sons, 1990
J. Whittaker, Graphical Models in Applied Multivariate Statistics , John Wiley & Sons, 1990
work page 1990
-
[58]
S. Willard, W.L. Holzemer, D.J. Wantland, Y.P. Cuca, K.M. Kirksey, C.J. Portillo, I.B. Corless, M. Rivero-Mndez, M.E. Rosa, P.K. Nicholas, M.J. Hamilton, E. Sefcik, J. Kemppainen, G. Canaval, L. Robinson, S. Moezzi, S. Human, J. Arudo, L.S. Eller, E. Bunch, P.J. Dole, C. Coleman, K. Nokes, N.R. Reynolds, Y.F. Tsai, M. Maryland, J. Voss, and T. Lindgren, D...
work page 2009
-
[59]
X. Zhao, J.G. Lynch, and Q. Chen, Reconsidering Baron and Kenny: Myths and truths about mediation analysis, Journal of Consumer Research 37 (2010), pp. 197–206. Department of Statistics, University of W ashington, Seattle, W A, USA Frances Payne Bolton School of Nursing, Case Western Reserve University, Cleveland, OH, USA
work page 2010
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.