A implementation of estimation by propensity, IPM, and doubly robust estimation