Yongnam Kim's Avatar

Yongnam Kim

@ykims.bsky.social

Education researcher interested in causal inference & DAGs | Seoul National University

330 Followers  |  110 Following  |  21 Posts  |  Joined: 01.12.2024  |  2.1195

Latest posts by ykims.bsky.social on Bluesky


OSF

also, here is a DAG for the classical DiD by Card & Krueger (1994) osf.io/preprints/ps... Presenting it to an Econ audience, one question was, this seems not DiD bc there is no time and the interaction. Another fun claim of it: DiD can be, indeed has been used to deal with the POSITIVITY violation.

25.02.2026 01:13 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Lots to say on this, but one thing recently came to my mind is the isomorphism between β€œwide format” & β€œlong format” for panel datasets. The latter treats time as a variable, which confuses the issue, at least conceptually. DiD with wide format is clear and here: journals.sagepub.com/doi/10.1177/...

25.02.2026 00:55 β€” πŸ‘ 3    πŸ” 4    πŸ’¬ 1    πŸ“Œ 0

that's what people think about true PS. For estimated or computed PS, different representations have been considered. One is Vs -> PS <- X, the other is just Vs -> PS. I used to think the former was right, but now I think it's the latter.

20.02.2026 06:26 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

But I certainly agree that DAGs have weaknesses. Not everything can be explained with DAGs.

20.02.2026 06:20 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

the coefs carry some "dependence" on A. But once the coefs are determined, PS is computed purely as a function of covariates by the coefs. DAG encodes that functional relationship, not the process by which the coef were determined. A's role in estimation doesn't justify A -> PS.

20.02.2026 06:19 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

and it contains probably the 1st DAG representation of 2SLS, differing from Wald estimation. The 2SLS analogy was key to convincing me about the PS case. In the DAG, Cov(A-hat, Y)/Var(A-hat) = tau follows cleanly from path-tracing rules, and adding A β†’ A-hat would break the IV identification.

19.02.2026 23:07 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 2    πŸ“Œ 1
Preview
Reconsidering the graphical representation of propensity scores in causal diagrams I read with interest Mansournia etΒ al.’s article β€˜Balancing scores and causal diagrams’ [1]. While their effort to use directed acyclic graphs (DAGs) to il

How to draw propensity scores (PS) in DAGs? Some (me also) claim it is like "treatment -> PS <- covariates", since in order to compute PS we need both treatment and covariates. This view has confused me for so long, and now I think I was wrong. My letter here: track.smtpsendmail.com/9032119/c?p=...

19.02.2026 22:59 β€” πŸ‘ 18    πŸ” 12    πŸ’¬ 4    πŸ“Œ 0
OSF

A bit late, but you might find this interesting, osf.io/preprints/ps.... I think we have the same graph about Lord’s paradox.

26.12.2025 10:00 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

This leads to an embarrassing thought: what I draw in my DAGs might itself be the result of a collider in some meta-DAG of the universe. I drew Sex β†’ Weight and was so sure of the structure. But in a higher-order universe, this might itself be the result of collider conditioning.

22.10.2025 21:51 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

What does β€œunconditional” really mean? P(data) seems unconditional, and P(data | boys) conditional. But imagine an alien landing on Earth and seeing P(data). It says, β€œOh, so you’re conditioning on humans, not tigers.” Every β€œunconditional” is just conditional on a world we take for granted.

22.10.2025 15:14 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
OSF

We’re too obsessed with decomposing direct and indirect effects in mediation. "mediation should not be understood in terms of decomposition...Once the priority of research questions is established, the practical irrelevance of statistical effect decomposition directly follows" osf.io/preprints/ps...

16.05.2025 04:47 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

a fun part is, these two approaches might give conflicting results about the effect of T. I think this can be another version of Lord's paradox.

02.05.2025 01:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I think your approach is ok. You just defined your question as the effect of T on Y/X, and there’s nothing wrong with it. But it might be good to think about why you're using Y/X. If you want to account for the role of X, another option is Y~T+X, which gives the effect of T on Y holding X constant.

02.05.2025 01:28 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Card & Krueger's (1994) minimum wage study may be such an extreme case of confounding: "State" (NJ vs. PA), a confounder, perfectly correlates with the causal variable "minimum wage." Their interest was in the effect of minimum wage on employment, not the effect of restaurants' state location.

01.05.2025 01:18 β€” πŸ‘ 15    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
Preview
Visualization of Causal Structures in Pharmacovigilance Data Using DAGs The PVdagger package provides tools for creating and visualizing Directed Acyclic Graphs (DAGs) with various biases and paths. This package is particularly useful for researchers and signal managers i...

Looking for a tool to more easily draw your DAGs and reason on them? Try PV-dagger (pvverse.github.io/pv_dagger/). Specifically designed by @fusarolimichele.bsky.social to deal with the complex DAGs involved in pharmacovigilance, helps positioning and color-coding confounds, measurement errors, etc

07.02.2025 11:46 β€” πŸ‘ 9    πŸ” 2    πŸ’¬ 0    πŸ“Œ 2

A key insight is the equivalence btw suppressors and instrumental variables. Yes, DAGs are useful for understanding why S is zero-related with Y, yet can increase the overall prediction.

27.01.2025 19:14 β€” πŸ‘ 5    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
Post image 10.01.2025 14:11 β€” πŸ‘ 82    πŸ” 13    πŸ’¬ 1    πŸ“Œ 4
OSF

Card & Krueger’s minimum wage study may be a real example of a positivity violation. Their DiD addresses positivity, not unconfoundedness.
osf.io/preprints/ps...

25.01.2025 10:57 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

This sounds like the same error I blogged about a few years ago, the common error of trying to control for population (or body size or many etc) by dividing the outcome variable by it. Props to the authors for seeking review and taking the issue seriously. Role models for us all.

21.01.2025 07:38 β€” πŸ‘ 102    πŸ” 20    πŸ’¬ 5    πŸ“Œ 1
Preview
British Journal of Mathematical and Statistical Psychology | Wiley Online Library Interaction analysis using linear regression is widely employed in psychology and related fields, yet it often induces confusion among applied researchers and students. This paper aims to address thi....

Why HIGHER? If not, AΒ² also be part of the Y model, implying AΒ² β†’ Y, which violates the exclusion restriction. This shows why the DAG representation suggested in shorturl.at/Tj8am is useful. AΒ² = A Γ— A can be described in DAGs, offering intuition for analysis mechanics.

19.01.2025 05:01 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Clear from the DAG, AΒ² acts as an instrumental variable (conditional on A), enabling the identification of the M β†’ Y effect even with U. This is what shorturl.at/1TgCm showed: mediation analysis can be valid (even with U) if the M model has a higher order of A than the Y model.

19.01.2025 05:00 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Very happy to share this final version with you. Thank you! ;-)

02.12.2024 07:59 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image

Easy to see why the cor btw the first-order and interaction terms (indicating collinearity) after centering becomes zero (though this is not the reason for centering); why centering X1 only (not X2) change the coef on X2​ while leaving the coefs on X1 and the (centered) interaction term unchanged.

02.12.2024 02:07 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 2
Preview
British Journal of Mathematical and Statistical Psychology | Wiley Online Library Interaction analysis using linear regression is widely employed in psychology and related fields, yet it often induces confusion among applied researchers and students. This paper aims to address thi...

DAGs (causal graphs) can be used to understand the mechanics of linear interaction analysis. See more here: bpspsychub.onlinelibrary.wiley.com/doi/10.1111/...

02.12.2024 02:02 β€” πŸ‘ 12    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

@ykims is following 20 prominent accounts