differences icon indicating copy to clipboard operation
differences copied to clipboard

difference-in-differences in Python

Results 11 differences issues
Sort by recently updated
recently updated
newest added

When using the wald_pre_test property, I get the following error: TypeError: results() got an unexpected keyword argument 'sample_name.' It points to this line as the error, so I am not...

There is a bug in the following line: https://github.com/bernardodionisi/differences/blob/86b15a2cd3a8235a3287f0cb5dc963a04b504f6f/src/differences/attgt/attgt.py#L339 that causes a Key Error when attempting to utilize the 'split_sample_by' feature on a dataset that contains N/A values in columns...

Hi, I am trying to run Doubly Robust S-DID with unbalanced panel and varying base period. the control group is 'not_yet_treated' My code is as following: ``` att_gt = ATTgt(data=diddata,...

I'm trying to reproduce the very first example of use: _panel_data = simulate_data() att_gt = ATTgt(data=panel_data, cohort_name='cohort')_ But I'm getting the folloing error. Any idea what's the problem? --------------------------------------------------------------------------- KeyError...

I'm running differences 0.1.2, Running the TWFE example from the README doesn't work: ```python from differences import TWFE, simulate_data df = simulate_data() twfe = TWFE(data=df, cohort_name='cohort') twfe.fit(formula='y') ``` It errors...

Hi. I am having this error when I use cluster_var. The variable is str. What could be the issue? I would greatly appreciate your help. Thanks in advance. --------------------------------------------------------------------------- AttributeError...

Hi there. I'm a little bit confused by how the cohort variable is defined and later used within the ATTgt class. Let me provide an example here to determine whether...

Hi there, This is a brief message of appreciation to @bernardodionisi and contributors for developing this library. We use (and cite) this software in our latest paper on memorisation in...

Hi, thank you for the package! I’m using the requirements.txt to install dependencies, but I’m still getting an error when Import differences. ImportError: cannot import name '_centered' from 'scipy.signal.signaltools'. Below...