Skip to content

Commit eefbed1

Browse files
committed
explicitly set c and fuzzy to avoid overwrite by kwargs
1 parent 9df0711 commit eefbed1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doubleml/rdd/rdd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,10 @@ def _update_weights(self):
453453
def _fit_rdd(self, h=None, b=None):
454454
if self.fuzzy:
455455
rdd_res = rdrobust.rdrobust(
456-
y=self._M_Y[:, self._i_rep], x=self._score, fuzzy=self._M_D[:, self._i_rep], h=h, b=b, **self.kwargs
456+
y=self._M_Y[:, self._i_rep], x=self._score, fuzzy=self._M_D[:, self._i_rep], h=h, b=b, c=0, **self.kwargs
457457
)
458458
else:
459-
rdd_res = rdrobust.rdrobust(y=self._M_Y[:, self._i_rep], x=self._score, h=h, b=b, **self.kwargs)
459+
rdd_res = rdrobust.rdrobust(y=self._M_Y[:, self._i_rep], x=self._score, fuzzy=None, h=h, b=b, **self.kwargs)
460460
return rdd_res
461461

462462
def _set_coefs(self, rdd_res, h):

0 commit comments

Comments
 (0)