Hello Statalist,

I'm relatively new to STATA and I'm working on a research project on education level and attitudes on immigration. I'm using the ANES data on this but I'm having trouble running a regression with getting an error message regarding collinearity.

This is what the education variable looks like on STATA

V201510 (now renamed education)
6. Bachelor'
3. Some coll
2. High sch
4. Associate
8. Professio
3. Some coll
4. Associate
2. High sch
2. High sch
4. Associate
2. High sch
2. High sch
2. High sch
7. Master's
3. Some coll
3. Some coll
6. Bachelor'
6. Bachelor'
6. Bachelor'
2. High sch
7. Master's
1. Less than
6. Bachelor'
7. Master's
1. Less than
6. Bachelor'
1. Less than
6. Bachelor'
8. Professio
2. High sch
2. High sch
3. Some coll

It is a double variable. My first issue was finding a way to group the same education levels together and create their own variable. Then my other issue is running a regression. However, when I've attempted to run the regression using education, it is being omitted due to collinearity. I'm wondering if it even possible to create separate groups and run the regression with each separate group and be successful?

Thank you!