Skip to contents

Like gmm_cf_variance(), a per-unit counterfactual tail probability \(P(Y_{t'} > c \mid y, t, x)\) is not identified – it is a functional of the unidentified counterfactual law, not of its identified mean. This accessor refuses rather than mislead.

Usage

gmm_cf_tail_prob(x, threshold)

Arguments

x

A gmm_counterfactual_law.

threshold

Numeric scalar c.

Value

Never returns; always raises a proxymix_not_identified error.

Examples

g <- gmm(weights = 1, means = list(c(0, 0, 0)),
         covariances = list(diag(3)))
cf <- gmm_counterfactual(g, evidence = c(1, 0, 0.2),
                         do = c(NA, 1, NA), query = 1L)
try(gmm_cf_tail_prob(cf, threshold = 2))
#> Error in gmm_cf_tail_prob(cf, threshold = 2) : 
#>   Individual counterfactual tail probabilities are not identified.
#>  They are functionals of the unidentified counterfactual law, not its mean.
#>  Only the counterfactual mean is identified; see `gmm_cf_mean()`.