dot-summarise_weights: Summarise GPS weight distribution

.summarise_weightsR Documentation

Summarise GPS weight distribution

Description

Prints a compact diagnostic table for IPW weights: range, mean, ESS, and a flag if ESS < 0.4 * n (severe imbalance warning).

Usage

.summarise_weights(weights, n, pathway = "treatment")

Arguments

weights

Numeric weight vector.

n

Original sample size.

pathway

Label for the pathway (e.g. "treatment").

Value

Invisibly returns a named list with min, max, mean, ess, ess_ratio.


RobustMediate documentation built on April 16, 2026, 5:08 p.m.