You specified the keep(varlist) option.

Variable not found. You specified the keep(varlist) option. The above error was the result of parsing the list of variables you supplied against the using data.
Stata在进行eventstudy2回归, marketid这个变量明明在我的原始数据库里都有,他说找不到。下面这一段说我使用了keep option,可是我也不知道哪里使用了。原Excel数据库导入成stata dta我只对日期进行了格式转换。能帮忙解答一下这里是哪里出了错误

img

img

可以参考以下内容更改
https://www.statalist.org/forums/forum/general-stata-discussion/general/1369330-csv-import-loop-error