| .summarise_weights | R Documentation |
Prints a compact diagnostic table for IPW weights: range, mean, ESS, and a flag if ESS < 0.4 * n (severe imbalance warning).
.summarise_weights(weights, n, pathway = "treatment")
weights |
Numeric weight vector. |
n |
Original sample size. |
pathway |
Label for the pathway (e.g. |
Invisibly returns a named list with min, max, mean, ess, ess_ratio.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.