tlverse / tmle3shift

🎯 :game_die: Targeted Learning of the Causal Effects of Stochastic Interventions
https://tlverse.org/tmle3shift
GNU General Public License v3.0
16 stars 1 forks source link

Fix indeterminate density ratios #14

Closed nhejazi closed 6 years ago

nhejazi commented 6 years ago

Sometimes, density ratios in shift_density_bounded return NA when comparing the counterfactual and observed probability of the intervention given the covariates (for some observations only). This causes failures to propagate throughout the remainder of the estimation procedure.