Closed achinmay17 closed 1 year ago
Incorrect naming of variables when creating a function in Python.
Testing in Jupyter Book:
t
and g
(following the R
code). This means that the results obtained in this environment were based on the t
and g
variables.Variable renaming in the code:
t
was renamed to t_i
(omitting to rename the variable in some instances).Difference in results:
Renaming in the final code:
t
was renamed to t_i
, which seems to have caused problems in the consistency of the results.Correction
t
back to t_i
, to avoid the error that the variable is used but was not declared.
't' is called in snippet from line 80 in compute_att_gt.py. However, its not defined earlier.
I see a commneted line 58 where it was defined (but not commented). If I uncomment that and run it, I get the indexing error on the dataframe.
The issue is only arising when we use control_group = 'notyettreated'.