JMSLab / xtevent

Stata package -xtevent-
MIT License
43 stars 12 forks source link

Let the window option choose a window range based on event-time limits in the data #170

Closed Constantino-Carreto-Romero closed 4 months ago

Constantino-Carreto-Romero commented 6 months ago

Modify the -window- option to admit the following specifications if the policyvar follows staggered adoption:

Constantino-Carreto-Romero commented 5 months ago

@jorpppp

jorpppp commented 5 months ago

Thank you @Constantino-Carreto-Romero. I left some comments on https://github.com/JMSLab/xtevent/commit/480ba3c017e3e6cca0df345eeb4e6cd20bf0d33d to be addressed. Please let me know when you review them and I'll take another look.

jorpppp commented 5 months ago

@Constantino-Carreto-Romero can you also check the documentation to possible make the explanation of window clearer? Users may not understand why if they have event times -5 to 5, they cannot use window(-5 5). This is because of the endpoints: we should make this clearer.

Constantino-Carreto-Romero commented 5 months ago

Thank you @Constantino-Carreto-Romero. I left some comments on 480ba3c to be addressed. Please let me know when you review them and I'll take another look.

@jorpppp thanks

After this, I ran the test file and the file in the issue folder without inconvenience. I checked that the help file was rendered correctly as well.

Constantino-Carreto-Romero commented 4 months ago

Summary: In this issue, we implemented automatic window generation if the policy variable follows staggered adoption. Thread continues in https://github.com/JMSLab/xtevent/pull/178