MétaCan
Menu
Back to cohort
Record W4414753970 · doi:10.1037/met0000781.supp

Supplemental Material for Causal Mediation Analysis With Two Mediators: A Comprehensive Guide to Estimating Total and Natural Effects Across Various Multiple Mediators Setups

2025· article· en· W4414753970 on OpenAlex

Why this work is in the frame

A frame that forgets how it found something cannot be audited. These are the routes that admitted this work.

aboutThe title or abstract carries a Canadian signal from the geographic lexicon.
no affNo Canadian affiliation: this work is invisible to an affiliation-only frame.
No Canadian affiliation. An affiliation-only frame, the usual design, would never have seen this work. It is one of the works that make the case for inverting the frame.

Bibliographic record

VenuePsychological Methods · 2025
Typearticle
Languageen
FieldComputer Science
TopicInformation and Cyber Security
Canadian institutionsnot available
Fundersnot available
KeywordsMediationNatural (archaeology)Causal modelCausal analysisCausal inferenceCausality (physics)

Abstract

fetched live from OpenAlex

Variable descriptionTo illustrate the process of conducting a causal mediation analysis with two mediators, we used data from the International Dating Violence Study (Strauss, 2011) conducted between 2001 and 2006.The initial sample size consisted of 17, 404 participants, of whom 8, 896 were excluded because they had not been involved in a romantic relationship for at least one year, leaving a sample of 8, 508 individuals.An additional 2, 284 participants were excluded because they were not Canadian, American, or European, resulting in a final sample size of n = 6, 224.Childhood maltreatment was assessed using the following question: "When I was less than 12 years old, I was spanked or hit a lot by my mother or father."Responses ranged from 1 ("Strongly Disagree") to 4 ("Strongly Agree").The variable has been recoded to vary from 0 to 3 when treating childhood maltreatment as a continuous variable.A binary indicator was created to indicate exposure to childhood maltreatment; the indicator was equal to 1 if participants answered "Agree" or "Strongly Agree", and 0 otherwise.Post-traumatic stress symptoms were measured as the mean of eight items, such as "I've been terrified by things that have happened to me" and "I try not to think about terrible things that happened to me." Responses ranged from 1 ("Strongly Disagree") to 4 ("Strongly Agree").The Cronbach's alpha based on our final sample was = 0.74.Alcohol use was assessed using four items, including "I sometimes drink enough to feel really high or drunk" and "Sometimes I can't remember what happened the night before because of drinking."Responses ranged from 1 ("Strongly Disagree") to 4 ("Strongly Agree").For instructional purposes, a binary indicator of problematic alcohol use was created.It was equal to 1 ("Problematic alcohol use") if participants answered "Strongly Agree" to any of these items, and 0 ("No problematic alcohol use") otherwise.Religious involvement was measured as the mean of two items: "I attend a church, synagogue, or mosque once a month or more" and "I rarely have anything to do with religious activities".The answers ranged from 1 ("Strongly Disagree") to 4 ("Strongly bys tempID : gen replicate = _n * Find the quantiles gen D = 0.05 + (.90/4)*(replicate-1) estimate restore pxc predict pxc * Set x0 to the 5 quantiles gen x0 = e(rmse)*invnormal(D) + pxc * Set x1 to x_cont for all replications gen x1 = x_cont * Imputation of the outcome estimate restore py replace x_cont = x0 predict y_hat *-----Natural effect models ***Conditional glm y_hat c.x0##c.x1 i.c1 c2 c3 c4 c5 c6 i.c7 i.c8, fam(bin) link(logit) matrix coef[1,1] = 0.7*_b[x0] matrix coef[1,2] = (_b[x1] + 0.7*_b[x0#x1])*0.7 matrix coef[1,3] = coef[1,1] + coef[1,2] restore *-----Results ***Colname matrix colnames coef = "NDEc" "NIEc" "TEc" *****Return ereturn post coef, esample(`touse') end * Set the value of J local J = 5 * Mediation model (M1) for calculating weights regress m1 x_cont i.c1 c2 c3 c4 c5 c6 i.c7 i.c8 estimate store m1 * Mediation model (M2) for calculating weights regress m2 x_cont i.c1 c2 c3 c4 c5 c6 i.c7 i.c8 estimate store m2 preserve * Matrix to save estimates matrix coef = J(1, 6, .)gen tempID = _n * Expand the data set by a factor of J expand `J' sort tempID estimate restore pxc predict meanA * Set x0 to x_cont for all replications gen x0 = x_cont * Randomly draw J values for x1, and then expand the data set by a *factor of J * x1 replicates the J sampled values sequence J times gen x1 = rnormal(meanA, e(rmse)) expand `J' bys tempID x1 : gen counter_id = _n * Arrange the values of x2 * x2 replicates each of the J sampled values J times by tempID : gen x2 = x1[1+ `J'*(counter_id-1)] * Computing weights based on M1

Fetched live from OpenAlex and de-inverted. Abstracts are not stored in this database: the inverted indexes are 8.6 GB of the frame’s 9.3 GB of text, and the host has 13 GB free.

Full frame distilled prediction

Teacher imitation

Not calibrated prevalence, not ground truth. Human validation pending. Learned from the 10,348 direct Codex labels and 10,348 direct Gemma labels. Candidate is the union of thresholded teacher heads; consensus is their intersection. These outputs are machine_predicted_unvalidated and are not human labels or direct frontier model labels.

metaresearch head score (Codex)0.001
metaresearch head score (Gemma)0.001
Version: codex-gemma-dda1882f352aValidation status: machine_predicted_unvalidated
Candidate categoriesnone
Consensus categoriesnone
DomainCandidate signal: none · Consensus signal: none
Study designCandidate signal: Other design · Consensus signal: none
GenreCandidate signal: Methods · Consensus signal: Methods
Teacher disagreement score0.794
Threshold uncertainty score0.780

Codex and Gemma teacher scores by category

CategoryCodexGemma
Metaresearch0.0010.001
Meta-epidemiology (narrow)0.0000.000
Meta-epidemiology (broad)0.0000.000
Bibliometrics0.0000.001
Science and technology studies0.0000.000
Scholarly communication0.0000.000
Open science0.0000.000
Research integrity0.0000.000
Insufficient payload (model declined to judge)0.0000.000

Machine scores (provisional)

The two teacher heads of the student model, read on this work. A score orders the frame for review; it never asserts a category, and the validation status ships verbatim with every row.

Baseline scores from an immature model (maturity gate not passed, 7 training rounds). Scores rank; they never assert a category.

Opus teacher head0.014
GPT teacher head0.412
Teacher spread0.398 · how far apart the two teachers sit on this one work
Validation statusscore_only:v0-immature-baseline · verbatim from the scoring run: score_only means the number may rank works, and no category label ships from it