BandwidthSensitivity#

class causalpy.checks.bandwidth.BandwidthSensitivity[source]#

Re-fit with multiple bandwidths and compare effect estimates.

Parameters:

bandwidths (list[float] | None) – Bandwidth values to test. np.inf means no bandwidth restriction.

Examples

>>> import causalpy as cp
>>> check = cp.checks.BandwidthSensitivity(
...     bandwidths=[0.5, 1.0, 2.0, np.inf]
... )

Methods

BandwidthSensitivity.__init__([bandwidths])

BandwidthSensitivity.run(experiment, context)

Re-fit the experiment at multiple bandwidths and compare estimates.

BandwidthSensitivity.validate(experiment)

Verify the experiment is an RD or RKink instance.

Attributes

applicable_methods

__init__(bandwidths=None)[source]#
Parameters:

bandwidths (list[float] | None)

Return type:

None

classmethod __new__(*args, **kwargs)#