We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1566af4 commit efaa63bCopy full SHA for efaa63b
doubleml/rdd/rdd.py
@@ -143,7 +143,10 @@ def __init__(
143
144
self._check_effect_sign()
145
146
- # TODO: Add further input checks
+ if ("h", "b") & kwargs.keys():
147
+ warnings.warn(f"Key-worded arguments contain: {('h', 'b') & kwargs.keys()}. \n \
148
+ Iterative bandwidth selection will be overwritten by provided values.")
149
+
150
self.kwargs = kwargs
151
152
self._smpls = DoubleMLResampling(
@@ -454,11 +457,11 @@ def _fit_rdd(self, h=None, b=None):
454
457
if self.fuzzy:
455
458
rdd_res = rdrobust.rdrobust(
456
459
y=self._M_Y[:, self._i_rep], x=self._score, fuzzy=self._M_D[:, self._i_rep],
- c=0, **{{"h": h, "b": b} | self.kwargs}
460
+ c=0, **({"h": h, "b": b} | self.kwargs)
461
)
462
else:
463
rdd_res = rdrobust.rdrobust(y=self._M_Y[:, self._i_rep], x=self._score, fuzzy=None,
- c=0, **{{"h": h, "b": b} | self.kwargs})
464
+ c=0, **({"h": h, "b": b} | self.kwargs))
465
return rdd_res
466
467
def _set_coefs(self, rdd_res, h):
0 commit comments