{"action":"created","issue":{"url":"https://api.github.com/repos/DjalmaPessoa/convey/issues/142","repository_url":"https://api.github.com/repos/DjalmaPessoa/convey","labels_url":"https://api.github.com/repos/DjalmaPessoa/convey/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/DjalmaPessoa/convey/issues/142/comments","events_url":"https://api.github.com/repos/DjalmaPessoa/convey/issues/142/events","html_url":"https://github.com/DjalmaPessoa/convey/issues/142","id":165960208,"number":142,"title":"svygini estimates do not match IBGE estimates exactly.  do we care?","user":{"login":"ajdamico","id":216807,"avatar_url":"https://avatars.githubusercontent.com/u/216807?v=3","gravatar_id":"","url":"https://api.github.com/users/ajdamico","html_url":"https://github.com/ajdamico","followers_url":"https://api.github.com/users/ajdamico/followers","following_url":"https://api.github.com/users/ajdamico/following{/other_user}","gists_url":"https://api.github.com/users/ajdamico/gists{/gist_id}","starred_url":"https://api.github.com/users/ajdamico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajdamico/subscriptions","organizations_url":"https://api.github.com/users/ajdamico/orgs","repos_url":"https://api.github.com/users/ajdamico/repos","events_url":"https://api.github.com/users/ajdamico/events{/privacy}","received_events_url":"https://api.github.com/users/ajdamico/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DjalmaPessoa/convey/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"DjalmaPessoa","id":5308071,"avatar_url":"https://avatars.githubusercontent.com/u/5308071?v=3","gravatar_id":"","url":"https://api.github.com/users/DjalmaPessoa","html_url":"https://github.com/DjalmaPessoa","followers_url":"https://api.github.com/users/DjalmaPessoa/followers","following_url":"https://api.github.com/users/DjalmaPessoa/following{/other_user}","gists_url":"https://api.github.com/users/DjalmaPessoa/gists{/gist_id}","starred_url":"https://api.github.com/users/DjalmaPessoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DjalmaPessoa/subscriptions","organizations_url":"https://api.github.com/users/DjalmaPessoa/orgs","repos_url":"https://api.github.com/users/DjalmaPessoa/repos","events_url":"https://api.github.com/users/DjalmaPessoa/events{/privacy}","received_events_url":"https://api.github.com/users/DjalmaPessoa/received_events","type":"User","site_admin":false},"assignees":[{"login":"DjalmaPessoa","id":5308071,"avatar_url":"https://avatars.githubusercontent.com/u/5308071?v=3","gravatar_id":"","url":"https://api.github.com/users/DjalmaPessoa","html_url":"https://github.com/DjalmaPessoa","followers_url":"https://api.github.com/users/DjalmaPessoa/followers","following_url":"https://api.github.com/users/DjalmaPessoa/following{/other_user}","gists_url":"https://api.github.com/users/DjalmaPessoa/gists{/gist_id}","starred_url":"https://api.github.com/users/DjalmaPessoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DjalmaPessoa/subscriptions","organizations_url":"https://api.github.com/users/DjalmaPessoa/orgs","repos_url":"https://api.github.com/users/DjalmaPessoa/repos","events_url":"https://api.github.com/users/DjalmaPessoa/events{/privacy}","received_events_url":"https://api.github.com/users/DjalmaPessoa/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/DjalmaPessoa/convey/milestones/2","html_url":"https://github.com/DjalmaPessoa/convey/milestones/v0.2.0","labels_url":"https://api.github.com/repos/DjalmaPessoa/convey/milestones/2/labels","id":1797183,"number":2,"title":"v0.2.0","description":"full documentation with usage examples from real survey data, a few additional functions","creator":{"login":"ajdamico","id":216807,"avatar_url":"https://avatars.githubusercontent.com/u/216807?v=3","gravatar_id":"","url":"https://api.github.com/users/ajdamico","html_url":"https://github.com/ajdamico","followers_url":"https://api.github.com/users/ajdamico/followers","following_url":"https://api.github.com/users/ajdamico/following{/other_user}","gists_url":"https://api.github.com/users/ajdamico/gists{/gist_id}","starred_url":"https://api.github.com/users/ajdamico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajdamico/subscriptions","organizations_url":"https://api.github.com/users/ajdamico/orgs","repos_url":"https://api.github.com/users/ajdamico/repos","events_url":"https://api.github.com/users/ajdamico/events{/privacy}","received_events_url":"https://api.github.com/users/ajdamico/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":34,"state":"open","created_at":"2016-05-30T16:32:52Z","updated_at":"2016-07-17T05:06:59Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-07-17T04:44:13Z","updated_at":"2016-07-17T12:07:21Z","closed_at":null,"body":"\r\n\r\n\r\n\t# setwd( \"C:/My Directory/PNAD/\" )\r\n\r\n\r\n\tlibrary(DBI)\r\n\tlibrary(MonetDBLite)\t# load MonetDBLite package (creates database files in R)\r\n\tlibrary(downloader)\t\t# downloads and then runs the source() function on scripts from github\r\n\tlibrary(survey)\r\n\tlibrary(convey)\r\n\r\n\tpnad.dbfolder <- paste0( getwd() , \"/MonetDB\" )\r\n\tdb <- dbConnect( MonetDBLite::MonetDBLite() , pnad.dbfolder )\r\n\tdbListTables(db)\r\n\r\n\toptions(survey.lonely.psu = \"adjust\")\r\n\r\n\tsource_url( \"https://raw.githubusercontent.com/ajdamico/asdfree/master/Pesquisa%20Nacional%20por%20Amostra%20de%20Domicilios/pnad.survey.R\" , prompt = FALSE )\r\n\r\n\tout <- NULL\r\n\r\n\tfor( year in c( 2004:2009 , 2011:2012 ) ){\r\n\r\n\t\tsample.pnad <-\r\n\t\t  svydesign(\r\n\t\t\tid = ~v4618 ,\r\n\t\t\tstrata = ~v4617 ,\r\n\t\t\tdata = paste0( 'pnad' , year ) ,\r\n\t\t\tweights = ~pre_wgt ,\r\n\t\t\tnest = TRUE ,\r\n\t\t\tdbtype = \"MonetDBLite\" ,\r\n\t\t\tdbname = pnad.dbfolder\r\n\t\t  )\r\n\r\n\t\ty <-\r\n\t\t  pnad.postStratify(\r\n\t\t\tdesign = sample.pnad ,\r\n\t\t\tstrata.col = 'v4609' ,\r\n\t\t\toldwgt = 'pre_wgt'\r\n\t\t  )\r\n\t\t  \r\n\t\ty <- convey_prep(y)\r\n\r\n\t\ty.sub <- subset (y,  !is.na(v4720) & v4720!=0 & as.numeric( v8005 ) >= 15 )\r\n\r\n\r\n\t\tbrazil <- data.frame( coef( svygini (~ v4720,y.sub, na.rm=TRUE) ) )\r\n\r\n\t\tregions <- data.frame( coef( svyby(~v4720, ~region, y.sub, svygini, na.rm=TRUE ) ) )\r\n\r\n\t\tnames( brazil ) <- names( regions ) <- paste0( 'y' , year )\r\n\t\t\r\n\t\tif( is.null( out ) ) out <- rbind( brazil , regions ) else out <- cbind( out , rbind( brazil , regions ) )\r\n\t\t\r\n\t}\r\n\r\n\t# compare `out` to PDF page 174\r\n\t# http://biblioteca.ibge.gov.br/visualizacao/livros/liv66777.pdf#page=174\r\n\tround( out , 3 )\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/DjalmaPessoa/convey/issues/comments/233178888","html_url":"https://github.com/DjalmaPessoa/convey/issues/142#issuecomment-233178888","issue_url":"https://api.github.com/repos/DjalmaPessoa/convey/issues/142","id":233178888,"user":{"login":"ajdamico","id":216807,"avatar_url":"https://avatars.githubusercontent.com/u/216807?v=3","gravatar_id":"","url":"https://api.github.com/users/ajdamico","html_url":"https://github.com/ajdamico","followers_url":"https://api.github.com/users/ajdamico/followers","following_url":"https://api.github.com/users/ajdamico/following{/other_user}","gists_url":"https://api.github.com/users/ajdamico/gists{/gist_id}","starred_url":"https://api.github.com/users/ajdamico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajdamico/subscriptions","organizations_url":"https://api.github.com/users/ajdamico/orgs","repos_url":"https://api.github.com/users/ajdamico/repos","events_url":"https://api.github.com/users/ajdamico/events{/privacy}","received_events_url":"https://api.github.com/users/ajdamico/received_events","type":"User","site_admin":false},"created_at":"2016-07-17T12:07:20Z","updated_at":"2016-07-17T12:07:20Z","body":"yep, we should match or be able to explain the difference\n\nOn Sunday, July 17, 2016, DjalmaPessoa <notifications@github.com> wrote:\n\n> I had noticed that. I could ask them the code they are using. It is\n> probably in SAS\n>\n> On Sun, Jul 17, 2016 at 2:05 AM, Anthony Damico <notifications@github.com\n> <javascript:_e(%7B%7D,'cvml','notifications@github.com');>>\n> wrote:\n>\n> > possibly related? #3 <https://github.com/DjalmaPessoa/convey/issues/3>\n> >\n> > —\n> > You are receiving this because you were assigned.\n> > Reply to this email directly, view it on GitHub\n> > <\n> https://github.com/DjalmaPessoa/convey/issues/142#issuecomment-233165468>,\n> > or mute the thread\n> > <\n> https://github.com/notifications/unsubscribe-auth/AFD-p9n0Hf90aVHgxH6QZRQIjpKsYh8Oks5qWbghgaJpZM4JOJu1\n> >\n> > .\n> >\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/DjalmaPessoa/convey/issues/142#issuecomment-233178591>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AANO55wytcN6k90PWcd4rbUatbj0htIiks5qWhksgaJpZM4JOJu1>\n> .\n>\n"}}
{"actor":{"display_login":"ajdamico"}}