fn.check_positivity: Check for positivity violations

View source: R/diagnostics.R

fn.check_positivityR Documentation

Check for positivity violations

Description

Warns if any study-group combination has very few observations or estimated propensities near zero, suggesting positivity may be violated.

Usage

fn.check_positivity(data, parm, propensity_min = DIAG_PROPENSITY_MIN)

Arguments

data

Structured data list with N.sz (study-group counts)

parm

Parameter list with diagnostics (frac_truncated)

propensity_min

Fraction threshold: warn if this fraction of subjects had near-zero pre-truncation propensity (default: 0.05)

Value

Invisibly returns TRUE if warning issued, FALSE otherwise


WMAP documentation built on Oct. 6, 2026, 1:07 a.m.