Hi all, I am running a regression using
Code:
reghdfe
with two condition that

Code:
reghdfe y x if !inlist(GEOGN,"UNITEDS") if yr<=2012, a(TYPE2 yr)
However, the code does not work

Error
Code:
invalid syntax
r(198);
When I put the condition if !inlist(GEOGN,"UNITEDS") or if yr<=2012, it works, but when I put them together like in the code above, it announces an error.

Could you please help me to sort it out? Thanks in advance