pzivich / zEpid

Epidemiology analysis package
http://zepid.readthedocs.org
MIT License
141 stars 33 forks source link

Replace with np.clip #138

Closed pzivich closed 3 years ago

pzivich commented 4 years ago

https://github.com/pzivich/zEpid/blob/0cf189e01936429e63e95faca5d88d31e1f1dc3d/zepid/causal/utils.py#L155

Replace the treatment probability bounding with np.clip since that is easier to keep up with overall

Same needs to be done for TMLE with the continuous outcome bounding

pzivich commented 3 years ago

I don't need to replace with np.clip. I have another filtering approach that doesn't rely on any function (but also doesn't produce warnings). Implementation is in #151