Skip to content

Interface: MediationResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / MediationResponse

Defined in: src/types/causal.ts:1091

The certified mediation decomposition: natural direct and indirect effects, their total, and the machine-checked TE = NDE + NIE identity.

decompositionCertified: boolean

Defined in: src/types/causal.ts:1093

TE = NDE + NIE certified by exact polynomial identity testing.


optional identificationCertificateId?: string | null

Defined in: src/types/causal.ts:1097

The identification certificate this estimate was gated on, when certified.


optional identificationProvenance?: string

Defined in: src/types/causal.ts:1099

How identification was established (certified or caller_asserted).


n: number

Defined in: src/types/causal.ts:1101

Number of observations used.


nde: MediationEffectDto

Defined in: src/types/causal.ts:1103

Natural direct effect theta(1,0) - theta(0,0).


nie: MediationEffectDto

Defined in: src/types/causal.ts:1105

Natural indirect effect theta(1,1) - theta(1,0).


optional overlap?: OverlapDiagnosticDto | null

Defined in: src/types/causal.ts:1109

Positivity / overlap diagnostic over the fitted treatment propensities.


optional proportionMediated?: number | null

Defined in: src/types/causal.ts:1114

Proportion of the total effect transmitted through the mediator (NIE / TE); null when the total effect is approximately 0.


totalEffect: number

Defined in: src/types/causal.ts:1116

Total effect NDE + NIE.