Skip to content

Commit

Permalink
Merge pull request #203 from ekgolightly/patch-1
Browse files Browse the repository at this point in the history
Switch time_to_treat sub calc in Python logic
  • Loading branch information
NickCH-K authored Jul 4, 2023
2 parents c72608b + dd028d9 commit 95fbb84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model_Estimation/Research_Design/event_study.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ df = pd.read_csv("https://raw.githubusercontent.com/LOST-STATS/LOST-STATS.github
# This allows for the interaction between `treat` and `time_to_treat` to occur for each state.
# Otherwise, there may be some missingss and the estimations will be off.
df['time_to_treat'] = (
df['_nfd'].sub(df['year'])
df['year'].sub(df['_nfd'])
# missing values for _nfd implies no treatment
.fillna(0)
# so we don't have decimals in our factor names
Expand Down

0 comments on commit 95fbb84

Please sign in to comment.