Hi there everyone!
I am a beginner at using Stata software and I am supposed to prepare a logit model, which indicates how satisfaction on life and work experiences ifluences the willingness to migrate to another country. The probelm is, that my explanatory variables are numbered from 1 to 8, where ( 1 stands for utterly satisfied, 2 means slightly satisfied, 3 neutral attitude, 4 slightly dissatisfied, 5 dissatisfied, 6 completely disappointed, 7 means i don't have opininon and 8 stands for missing observation). My problem is that I want to substitute values form 1 to 3 with simply 1 and values 4, 5 and 6 substitute with 0 and get rid of observations with values 7 and 8. When I am able to do that, I will have variables perfect for logit model ( 0,1 variables). How am I supposed to do that? I do not even know what kind of command should I use, so I would be really greatful if someone could give me any clue.
I am a beginner at using Stata software and I am supposed to prepare a logit model, which indicates how satisfaction on life and work experiences ifluences the willingness to migrate to another country. The probelm is, that my explanatory variables are numbered from 1 to 8, where ( 1 stands for utterly satisfied, 2 means slightly satisfied, 3 neutral attitude, 4 slightly dissatisfied, 5 dissatisfied, 6 completely disappointed, 7 means i don't have opininon and 8 stands for missing observation). My problem is that I want to substitute values form 1 to 3 with simply 1 and values 4, 5 and 6 substitute with 0 and get rid of observations with values 7 and 8. When I am able to do that, I will have variables perfect for logit model ( 0,1 variables). How am I supposed to do that? I do not even know what kind of command should I use, so I would be really greatful if someone could give me any clue.
Comment