Dear All, I found this question here http://bbs.pinggu.org/forum.php?mod=...=1#pid50869982. The purpose is to randomly assign a new birth place from the original `placeofborn'.
Note that:
Code:
clear input str7 name int years str9 placeofborn "" 1998 "" "John" 1998 "Nashville" "Brian" 1998 "Nork York" "Mary" 1998 "" "Charles" 1998 "" "" 1999 "" "Susan" 1999 "San Diego" "Brian" 1999 "Nork York" "Frank" 1999 "Chicago" end
- Nothing to do with the element without a name, e.g., the first/sixth observation.
- All the other observations have to be (randomly) replaced with a new birth place (maybe the same as the original one), with or without information on the original place of birth (`placeofborn').
Comment