Using the event study 2 code, this error keeps occurring. Any help to address it, code is below
if "`nokolari'" != "nokolari"{
= if "" != "nokolari"{
- use "`__temp'", clear
= use "C:\Users\AALR\AppData\Local\Temp\ST_6bda0_00000g. tmp", clear
- capture: gen `STDF' = AR
= capture: gen __00000Y = AR
- keep `_id' `STDF' `difp'
= keep __00000X __00000Y __000016
variable __00000X not found
reshape wide `STDF' , i(`_id') j(`difp')
drop `_id'
mata STDF = st_data(.,.)'
if "`kolblock'" == "" {
mata: KolariADJ = KOLARI(AR,STDF,df)
}
else{
mata: KolariADJ = KOLARIBLK(AR,STDF,df,KLBK)
}
}
if "`nokolari'" != "nokolari"{
= if "" != "nokolari"{
- use "`__temp'", clear
= use "C:\Users\AALR\AppData\Local\Temp\ST_6bda0_00000g. tmp", clear
- capture: gen `STDF' = AR
= capture: gen __00000Y = AR
- keep `_id' `STDF' `difp'
= keep __00000X __00000Y __000016
variable __00000X not found
reshape wide `STDF' , i(`_id') j(`difp')
drop `_id'
mata STDF = st_data(.,.)'
if "`kolblock'" == "" {
mata: KolariADJ = KOLARI(AR,STDF,df)
}
else{
mata: KolariADJ = KOLARIBLK(AR,STDF,df,KLBK)
}
}
Comment