Question: e) Split up the variable IMMIG into two factors. The first IMMIGRANT with labels c('non-immigrant','immigrant') and the second RECENTIMMIGRANT with labels c('non-immigrant or landed more
e) Split up the variable IMMIG into two factors. The first IMMIGRANT with labels c('non-immigrant','immigrant') and the second RECENTIMMIGRANT with labels c('non-immigrant or landed more than 10 years ago','recent immigrant'). Refer to the reference manual to check which level corresponds with which status! A useful command here might be 'ifelse
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
