I want to perform the same regression for 4 different socio-economic levels of the interviewed persons in the survey data.
for example:
educational_level (of subset 1) = ß0 + ß1*educational_level_father + ß2*race + ... +u
educational_level (of subset 2)= ß0 + ß1*educational_level_father + ß2*race + ... +u
...and so on. How do I divide the data.frame
based on the value of one specific variable (column) in it?