{"action":"created","issue":{"url":"https://api.github.com/repos/dgentil1/Katrina/issues/5","repository_url":"https://api.github.com/repos/dgentil1/Katrina","labels_url":"https://api.github.com/repos/dgentil1/Katrina/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/dgentil1/Katrina/issues/5/comments","events_url":"https://api.github.com/repos/dgentil1/Katrina/issues/5/events","html_url":"https://github.com/dgentil1/Katrina/issues/5","id":230611693,"number":5,"title":"Restrict the sample to natives","user":{"login":"marinabosque","id":28816511,"avatar_url":"https://avatars3.githubusercontent.com/u/28816511?v=3","gravatar_id":"","url":"https://api.github.com/users/marinabosque","html_url":"https://github.com/marinabosque","followers_url":"https://api.github.com/users/marinabosque/followers","following_url":"https://api.github.com/users/marinabosque/following{/other_user}","gists_url":"https://api.github.com/users/marinabosque/gists{/gist_id}","starred_url":"https://api.github.com/users/marinabosque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marinabosque/subscriptions","organizations_url":"https://api.github.com/users/marinabosque/orgs","repos_url":"https://api.github.com/users/marinabosque/repos","events_url":"https://api.github.com/users/marinabosque/events{/privacy}","received_events_url":"https://api.github.com/users/marinabosque/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"danielealimonti","id":28816556,"avatar_url":"https://avatars1.githubusercontent.com/u/28816556?v=3","gravatar_id":"","url":"https://api.github.com/users/danielealimonti","html_url":"https://github.com/danielealimonti","followers_url":"https://api.github.com/users/danielealimonti/followers","following_url":"https://api.github.com/users/danielealimonti/following{/other_user}","gists_url":"https://api.github.com/users/danielealimonti/gists{/gist_id}","starred_url":"https://api.github.com/users/danielealimonti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielealimonti/subscriptions","organizations_url":"https://api.github.com/users/danielealimonti/orgs","repos_url":"https://api.github.com/users/danielealimonti/repos","events_url":"https://api.github.com/users/danielealimonti/events{/privacy}","received_events_url":"https://api.github.com/users/danielealimonti/received_events","type":"User","site_admin":false},"assignees":[{"login":"danielealimonti","id":28816556,"avatar_url":"https://avatars1.githubusercontent.com/u/28816556?v=3","gravatar_id":"","url":"https://api.github.com/users/danielealimonti","html_url":"https://github.com/danielealimonti","followers_url":"https://api.github.com/users/danielealimonti/followers","following_url":"https://api.github.com/users/danielealimonti/following{/other_user}","gists_url":"https://api.github.com/users/danielealimonti/gists{/gist_id}","starred_url":"https://api.github.com/users/danielealimonti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielealimonti/subscriptions","organizations_url":"https://api.github.com/users/danielealimonti/orgs","repos_url":"https://api.github.com/users/danielealimonti/repos","events_url":"https://api.github.com/users/danielealimonti/events{/privacy}","received_events_url":"https://api.github.com/users/danielealimonti/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-05-23T07:30:26Z","updated_at":"2017-06-07T17:42:08Z","closed_at":null,"body":"Alternatives:\r\n\r\n- See if individuals move from state to state.\r\n- Check variable 'nationality' --> Downloading new raw data (@dgentil1 it is needed your IPUMS account and password!)\r\n- Check variable 'living for more than 5 years'."},"comment":{"url":"https://api.github.com/repos/dgentil1/Katrina/issues/comments/306870701","html_url":"https://github.com/dgentil1/Katrina/issues/5#issuecomment-306870701","issue_url":"https://api.github.com/repos/dgentil1/Katrina/issues/5","id":306870701,"user":{"login":"danielealimonti","id":28816556,"avatar_url":"https://avatars1.githubusercontent.com/u/28816556?v=3","gravatar_id":"","url":"https://api.github.com/users/danielealimonti","html_url":"https://github.com/danielealimonti","followers_url":"https://api.github.com/users/danielealimonti/followers","following_url":"https://api.github.com/users/danielealimonti/following{/other_user}","gists_url":"https://api.github.com/users/danielealimonti/gists{/gist_id}","starred_url":"https://api.github.com/users/danielealimonti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielealimonti/subscriptions","organizations_url":"https://api.github.com/users/danielealimonti/orgs","repos_url":"https://api.github.com/users/danielealimonti/repos","events_url":"https://api.github.com/users/danielealimonti/events{/privacy}","received_events_url":"https://api.github.com/users/danielealimonti/received_events","type":"User","site_admin":false},"created_at":"2017-06-07T17:42:08Z","updated_at":"2017-06-07T17:42:08Z","body":"Yes, the comment makes sense. Here the status.\r\n\r\nThere isn't any variable that tells where the individual was born nor one that tells us where the individual was living 2-3-...-5 years before the survey. :( \r\n\r\nThe closest ones are \"bpl\" (birthplace), but unfortunately it groups all the individuals from the US under the same code without differentiating among States, and MIGRATE1 that helps us to distinguish those who were living the previous year in the same house, in the same county/state (different county)/different states/abroad.\r\n\r\nSince we are not lucky to observe the State/County/Metropolitan Area of birth but just the Country they were born (US, Italia, Spain, Uruguay, etc) I can use two alternatives.\r\n\r\n***** First alternative *****\r\nBPL (Birthplace): To flag Native/Non-Native;\r\nMIGRATE1 (Migration State, 1 year before): To flag Same Place/Different Place.\r\n\r\nIdeally, I can generate a dummy that takes value 1 if:\r\n- The individual is Native AND he/she was living in the same house the previous year.\r\nand takes value 0 if:\r\n- Non-native OR\r\n- Native who was living in a different place the previous year.\r\n\r\n***** Second alternative *****\r\nAn interesting alternative for creating this variable and restrict the sample is  by using three variables instead of two:\r\nBPL, MIGRATE1 and WHYMOVE (Reason for moving). Specifically, it contains a list of reason including: private reasons, working related reasons, housing reasons, other reasons, natural disasters.\r\nIn this case I would generate a dummy that takes value 1 if:\r\n- The individual is Native and he/she was living in the same house the previous year, but also if the place the person was living is different, but the reasons why he/she moved are not job-related;\r\ntakes value 0 if: \r\n- Non-native OR\r\n- The individual is Native and he/she was not living there the previous year but the reasons why he/she moved are job-related.\r\n\r\nWhat do you think? I think that this is the closer we can get given that I checked all the variables in IPUMS one by one."}}
{"actor":{"display_login":"danielealimonti"}}