Skip to content

Interface: MediationResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / MediationResponse

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

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:1069

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


optional identificationCertificateId?: string | null

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

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


optional identificationProvenance?: string

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

How identification was established (certified or caller_asserted).


n: number

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

Number of observations used.


nde: MediationEffectDto

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

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


nie: MediationEffectDto

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

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


optional overlap?: OverlapDiagnosticDto | null

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

Positivity / overlap diagnostic over the fitted treatment propensities.


optional proportionMediated?: number | null

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

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:1092

Total effect NDE + NIE.