Skip to content

Examples

Comprehensive examples demonstrating stochpw's features and usage patterns.

Basic Usage

Basic Usage

Introduction to fitting permutation weighters and assessing balance improvement

MLP Discriminator

Using multilayer perceptron discriminators for complex confounding patterns

Diagnostics & Evaluation

Comprehensive Diagnostics

Complete diagnostic workflow with ROC curves, calibration, and balance reports

Advanced Features

Advanced Features

Alternative loss functions, regularization, and early stopping

Lalonde Experiment

Real-world causal inference on the classic Lalonde dataset