Skip to contents

The return type of gmm_counterfactual(): a discrete law on K atoms (the per-component counterfactual outcomes) with abduction weights, plus the one identified summary – the counterfactual mean. The atom spread is regime (epistemic) uncertainty about which structural component generated the unit; it is not the counterfactual outcome's dispersion, which is unidentified. Accordingly gmm_cf_variance() and gmm_cf_tail_prob() refuse to answer.

Usage

gmm_counterfactual_law(
  atoms = numeric(0),
  weights = numeric(0),
  mean = numeric(0),
  query = integer(0),
  evidence = numeric(0),
  do = numeric(0),
  name = "gmm_counterfactual_law",
  metadata = list()
)

Arguments

atoms

Numeric vector of length K – the per-component counterfactual outcomes.

weights

Numeric vector of length K – the abduction weights \(\pi_k(\text{evidence})\).

mean

Numeric scalar – the identified counterfactual mean.

query

Integer scalar – the queried coordinate index.

evidence

Numeric vector – the observed unit.

do

Numeric vector – the intervention.

name

Human-readable name.

metadata

Optional list of descriptors.

Value

An S7 object of class gmm_counterfactual_law.