McCraryDensityTest.run#

McCraryDensityTest.run(experiment, context)[source]#

Test for manipulation of the running variable at the threshold.

Parameters:
  • experiment (BaseExperiment) – The fitted RegressionDiscontinuity experiment.

  • context (PipelineContext) – Pipeline context (unused; required by the check protocol).

Return type:

CheckResult