How inverse treatment probability makes treatment groups comparable