File tree Expand file tree Collapse file tree 2 files changed +826
-418
lines changed Expand file tree Collapse file tree 2 files changed +826
-418
lines changed Original file line number Diff line number Diff line change @@ -327,18 +327,24 @@ class RegressionDiscontinuity(ExperimentalDesign):
327
327
"""
328
328
A class to analyse regression discontinuity experiments.
329
329
330
+ :param data: A pandas dataframe
331
+ :param formula: A statistical model formula
332
+ :param treatment_threshold: A scalar threshold value at which the treatment is applied
333
+ :param prediction_model: A PyMC model
334
+ :param running_variable_name: The name of the predictor variable that the treatment threshold is based upon
335
+
330
336
.. note::
331
337
332
338
There is no pre/post intervention data distinction for the regression discontinuity design, we fit all the data available.
333
339
"""
334
340
335
341
def __init__ (
336
342
self ,
337
- data ,
338
- formula ,
339
- treatment_threshold ,
343
+ data : pd . DataFrame ,
344
+ formula : str ,
345
+ treatment_threshold : float ,
340
346
prediction_model = None ,
341
- running_variable_name = "x" ,
347
+ running_variable_name : str = "x" ,
342
348
outcome_variable_name = "y" ,
343
349
** kwargs ,
344
350
):
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments