I am trying to do a descriptive analysis about people's moving behaviour. My data is like this (of course, the real data contains more obs and years):
id address_1990 address_1991 address_1992 move
1 a b b 1
2 c c c 0
3 d e d 2
4 f . f 0
5 g . h 1
The last variable "move" is my goal, I don't have it initially. I just want to create such a variable to record the numbers of movement for each individual given their past addresses. Especially, I got trouble about how to handle the missing addresses.
Any help? Thanks a lot!
id address_1990 address_1991 address_1992 move
1 a b b 1
2 c c c 0
3 d e d 2
4 f . f 0
5 g . h 1
The last variable "move" is my goal, I don't have it initially. I just want to create such a variable to record the numbers of movement for each individual given their past addresses. Especially, I got trouble about how to handle the missing addresses.
Any help? Thanks a lot!
Comment