Hi everyone,
I am quite new to stata so would really appreciate your help. Currently I have a database containing firms from all industries marked by SIC code. I'd like to remove finance, insurance, real estate industries with SIC codes between 60 and 67. Hence, I am wondering if there is a simple command that can drop all firms with SIC code between 6xxx and 67xx?
I tried drop if command but so far has no worked. So far from what I've googled, I see only one sided constraint command such as drop if value>xxx.
Thanks very much in advance.
I am quite new to stata so would really appreciate your help. Currently I have a database containing firms from all industries marked by SIC code. I'd like to remove finance, insurance, real estate industries with SIC codes between 60 and 67. Hence, I am wondering if there is a simple command that can drop all firms with SIC code between 6xxx and 67xx?
I tried drop if command but so far has no worked. So far from what I've googled, I see only one sided constraint command such as drop if value>xxx.
Thanks very much in advance.
Comment