The case is linked with two versions of `eventstudy2` package.
- The older version on my machine(that is `v2.0.1`): eventstudy2.ado eventstudy2.sthlp
- The newest version since `v3.2b`: (It could be download by `ssc install eventstudy2`)
With the following test code in the `help eventstudy2`:
earnings_surprises.dta
test.do
```
use Earnings_surprises.dta
// test 1
eventstudy2 Security_id Date using Security_returns if Earnings_surprise > 0.05, returns(Return)
```
In stata 17, it works with the v2 version, but complained the following with version 3.2b: `< invalid name`

I don't have lincense for Stata18 or Stata19, but with `ssc install eventstudy2`, it would download the newest version of `v3.2b`. What cause this breaking change in this case? Is there any workaround to make `eventstudy2` has much better compatibility for Stata17 and below? Thank!
- The older version on my machine(that is `v2.0.1`): eventstudy2.ado eventstudy2.sthlp
- The newest version since `v3.2b`: (It could be download by `ssc install eventstudy2`)
With the following test code in the `help eventstudy2`:
earnings_surprises.dta
test.do
```
use Earnings_surprises.dta
// test 1
eventstudy2 Security_id Date using Security_returns if Earnings_surprise > 0.05, returns(Return)
```
In stata 17, it works with the v2 version, but complained the following with version 3.2b: `< invalid name`
I don't have lincense for Stata18 or Stata19, but with `ssc install eventstudy2`, it would download the newest version of `v3.2b`. What cause this breaking change in this case? Is there any workaround to make `eventstudy2` has much better compatibility for Stata17 and below? Thank!

Comment