Hi Statalist,
I have a seemly simple question below.
Pretty simple codes..but did not work with errors saying "type mismatch r(109);"
I also tred
still not working with error saying "invalid syntax r(198);"
Anyone could help me with this? (I already searched solutions online, but still cannot figure it out)
Thanks for any reply!
Yingyi
I have a seemly simple question below.
Code:
local zero=0 gen new_var =1 if old_var=="`zero'"
I also tred
Code:
local zero=0 gen new_var =1 if old_var==`zero'

Anyone could help me with this? (I already searched solutions online, but still cannot figure it out)
Thanks for any reply!
Yingyi
Comment