nt-williams / lmtp

:package: Non-parametric Causal Effects Based on Modified Treatment Policies :crystal_ball:
http://www.beyondtheate.com
GNU Affero General Public License v3.0
55 stars 16 forks source link

Reduntant if statement #126

Closed lorenzoFabbri closed 2 months ago

lorenzoFabbri commented 1 year ago

https://github.com/nt-williams/lmtp/blob/8ff28f82576d5bbc59225abd1b9d807d7a4ca9cb/R/lmtp_Task.R#L36

Isn't this if else statement the same as the if statement above?

nt-williams commented 2 months ago

It is redundant, but the verboseness of it is on purpose to enumerate all possibilities. Thanks for checking!