{"action":"created","comment":{"url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/pulls/comments/86336214","pull_request_review_id":6997079,"id":86336214,"diff_hunk":"@@ -82,6 +85,74 @@ to rate how well we performed.\n ```{r, echo=TRUE, message=TRUE, warning=TRUE, fig.width=8, fig.height=4.5}\n set.seed(76)\n \n+profiles <- profiles %>% \n+    mutate(religion= ifelse(is.na(religion), \"Not Reported\", religion))\n+\n+profiles <- profiles %>% \n+  mutate(`Grouped Religion` = fct_recode(religion,\n+                  \"agnosticism\" = \"agnosticism\",\n+                  \"agnosticism\" = \"agnosticism and laughing about it\",\n+                  \"agnosticism\" = \"agnosticism and somewhat serious about it\",\n+                  \"agnosticism\" = \"agnosticism and very serious about it\",\n+                  \"agnosticism\" = \"agnosticism but not too serious about it\",\n+                  \"atheism\" = \"atheism\",\n+                  \"atheism\" = \"atheism and laughing about it\",\n+                  \"atheism\" = \"atheism and somewhat serious about it\",\n+                  \"atheism\" = \"atheism and very serious about it\",\n+                  \"atheism\" = \"atheism but not too serious about it\",\n+                  \"buddhism\" = \"buddhism\",\n+                  \"buddhism\" = \"buddhism and laughing about it\",\n+                  \"buddhism\" = \"buddhism and somewhat serious about it\",\n+                  \"buddhism\" = \"buddhism and very serious about it\",\n+                  \"buddhism\" = \"buddhism but not too serious about it\",\n+                  \"catholism\" = \"catholicism\",\n+                  \"catholism\" = \"catholicism and laughing about it\",\n+                  \"catholism\" = \"catholicism and somewhat serious about it\",\n+                  \"catholism\" = \"catholicism and very serious about it\",\n+                  \"catholism\" = \"catholicism but not too serious about it\",\n+                  \"christianity\" = \"christianity\",\n+                  \"christianity\" = \"christianity and laughing about it\",\n+                  \"christianity\" =\"christianity and somewhat serious about it\",\n+                  \"christianity\" = \"christianity and very serious about it\",\n+                  \"christianity\" = \"christianity but not too serious about it\",\n+                  \"hinduism\" = \"hinduism\",\n+                  \"hinduism\" = \"hinduism and laughing about it\",\n+                  \"hinduism\" = \"hinduism and somewhat serious about it\",\n+                  \"hinduism\" = \"hinduism and very serious about it\",\n+                  \"hinduism\" = \"hinduism but not too serious about it\",\n+                  \"islam\" = \"islam\",\n+                  \"islam\" = \"islam and laughing about it\",\n+                  \"islam\" = \"islam and somewhat serious about it\",\n+                  \"islam\" = \"islam and very serious about it\",\n+                  \"islam\" = \"islam but not too serious about it\",\n+                  \"judaism\" = \"judaism\",\n+                  \"judaism\" = \"judaism and laughing about it\",\n+                  \"judaism\" = \"judaism and somewhat serious about it\",\n+                  \"judaism\" = \"judaism and very serious about it\",\n+                  \"judaism\" = \"judaism but not too serious about it\",\n+                  \"other\" = \"other\",\n+                  \"other\" = \"other and laughing about it\",\n+                  \"other\" = \"other and somewhat serious about it\",\n+                  \"other\" = \"other and very serious about it\",\n+                  \"other\" = \"other but not too serious about it\",\n+                  \"Not Reported\" = \"Not Reported\"))\n+\n+\n+profiles <- profiles %>% \n+  mutate(income_levels =\n+    ifelse(income %in% -2:0, \"Not Reported\",\n+    ifelse(income %in% 0:20000, \"Low Income\",\n+    ifelse(income %in% 20001:70000, \"Middle Income\",\n+    ifelse(income %in% 70000:1000000, \"High Income\", \" \")))))\n+  \n+profiles <- profiles %>%\n+  mutate(job =ifelse(is.na(job),\"Not Reported\", job))\n+\n+training <- profiles[sample(nrow(profiles), 2997), ]","path":"HW-3.Rmd","position":104,"original_position":104,"commit_id":"ea4ea51817918463d4e2ec1856aed8e702269587","original_commit_id":"ea4ea51817918463d4e2ec1856aed8e702269587","user":{"login":"rudeboybert","id":4574203,"avatar_url":"https://avatars.githubusercontent.com/u/4574203?v=3","gravatar_id":"","url":"https://api.github.com/users/rudeboybert","html_url":"https://github.com/rudeboybert","followers_url":"https://api.github.com/users/rudeboybert/followers","following_url":"https://api.github.com/users/rudeboybert/following{/other_user}","gists_url":"https://api.github.com/users/rudeboybert/gists{/gist_id}","starred_url":"https://api.github.com/users/rudeboybert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudeboybert/subscriptions","organizations_url":"https://api.github.com/users/rudeboybert/orgs","repos_url":"https://api.github.com/users/rudeboybert/repos","events_url":"https://api.github.com/users/rudeboybert/events{/privacy}","received_events_url":"https://api.github.com/users/rudeboybert/received_events","type":"User","site_admin":false},"body":"consider `anti_join(by =\"id\")`","created_at":"2016-11-03T13:00:03Z","updated_at":"2016-11-03T13:04:13Z","html_url":"https://github.com/2016-09-Middlebury-Data-Science/HW-3/pull/8#discussion_r86336214","pull_request_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/pulls/comments/86336214"},"html":{"href":"https://github.com/2016-09-Middlebury-Data-Science/HW-3/pull/8#discussion_r86336214"},"pull_request":{"href":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/pulls/8","id":91893362,"html_url":"https://github.com/2016-09-Middlebury-Data-Science/HW-3/pull/8","diff_url":"https://github.com/2016-09-Middlebury-Data-Science/HW-3/pull/8.diff","patch_url":"https://github.com/2016-09-Middlebury-Data-Science/HW-3/pull/8.patch","issue_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/issues/8","number":8,"state":"open","locked":false,"title":"Hobbs HW3","user":{"login":"kwhobbs","id":22149397,"avatar_url":"https://avatars.githubusercontent.com/u/22149397?v=3","gravatar_id":"","url":"https://api.github.com/users/kwhobbs","html_url":"https://github.com/kwhobbs","followers_url":"https://api.github.com/users/kwhobbs/followers","following_url":"https://api.github.com/users/kwhobbs/following{/other_user}","gists_url":"https://api.github.com/users/kwhobbs/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhobbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhobbs/subscriptions","organizations_url":"https://api.github.com/users/kwhobbs/orgs","repos_url":"https://api.github.com/users/kwhobbs/repos","events_url":"https://api.github.com/users/kwhobbs/events{/privacy}","received_events_url":"https://api.github.com/users/kwhobbs/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-02T01:09:03Z","updated_at":"2016-11-03T13:04:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68d7ebd01b75d9673202efee13fe7b9165ec6f22","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/pulls/8/commits","review_comments_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/pulls/8/comments","review_comment_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/issues/8/comments","statuses_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/statuses/ea4ea51817918463d4e2ec1856aed8e702269587","head":{"label":"kwhobbs:master","ref":"master","sha":"ea4ea51817918463d4e2ec1856aed8e702269587","user":{"login":"kwhobbs","id":22149397,"avatar_url":"https://avatars.githubusercontent.com/u/22149397?v=3","gravatar_id":"","url":"https://api.github.com/users/kwhobbs","html_url":"https://github.com/kwhobbs","followers_url":"https://api.github.com/users/kwhobbs/followers","following_url":"https://api.github.com/users/kwhobbs/following{/other_user}","gists_url":"https://api.github.com/users/kwhobbs/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhobbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhobbs/subscriptions","organizations_url":"https://api.github.com/users/kwhobbs/orgs","repos_url":"https://api.github.com/users/kwhobbs/repos","events_url":"https://api.github.com/users/kwhobbs/events{/privacy}","received_events_url":"https://api.github.com/users/kwhobbs/received_events","type":"User","site_admin":false},"repo":{"id":71359867,"name":"HW-3","full_name":"kwhobbs/HW-3","owner":{"login":"kwhobbs","id":22149397,"avatar_url":"https://avatars.githubusercontent.com/u/22149397?v=3","gravatar_id":"","url":"https://api.github.com/users/kwhobbs","html_url":"https://github.com/kwhobbs","followers_url":"https://api.github.com/users/kwhobbs/followers","following_url":"https://api.github.com/users/kwhobbs/following{/other_user}","gists_url":"https://api.github.com/users/kwhobbs/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhobbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhobbs/subscriptions","organizations_url":"https://api.github.com/users/kwhobbs/orgs","repos_url":"https://api.github.com/users/kwhobbs/repos","events_url":"https://api.github.com/users/kwhobbs/events{/privacy}","received_events_url":"https://api.github.com/users/kwhobbs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kwhobbs/HW-3","description":"Logistic Regression for Prediction","fork":true,"url":"https://api.github.com/repos/kwhobbs/HW-3","forks_url":"https://api.github.com/repos/kwhobbs/HW-3/forks","keys_url":"https://api.github.com/repos/kwhobbs/HW-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kwhobbs/HW-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kwhobbs/HW-3/teams","hooks_url":"https://api.github.com/repos/kwhobbs/HW-3/hooks","issue_events_url":"https://api.github.com/repos/kwhobbs/HW-3/issues/events{/number}","events_url":"https://api.github.com/repos/kwhobbs/HW-3/events","assignees_url":"https://api.github.com/repos/kwhobbs/HW-3/assignees{/user}","branches_url":"https://api.github.com/repos/kwhobbs/HW-3/branches{/branch}","tags_url":"https://api.github.com/repos/kwhobbs/HW-3/tags","blobs_url":"https://api.github.com/repos/kwhobbs/HW-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kwhobbs/HW-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kwhobbs/HW-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/kwhobbs/HW-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kwhobbs/HW-3/statuses/{sha}","languages_url":"https://api.github.com/repos/kwhobbs/HW-3/languages","stargazers_url":"https://api.github.com/repos/kwhobbs/HW-3/stargazers","contributors_url":"https://api.github.com/repos/kwhobbs/HW-3/contributors","subscribers_url":"https://api.github.com/repos/kwhobbs/HW-3/subscribers","subscription_url":"https://api.github.com/repos/kwhobbs/HW-3/subscription","commits_url":"https://api.github.com/repos/kwhobbs/HW-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/kwhobbs/HW-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/kwhobbs/HW-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/kwhobbs/HW-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/kwhobbs/HW-3/contents/{+path}","compare_url":"https://api.github.com/repos/kwhobbs/HW-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kwhobbs/HW-3/merges","archive_url":"https://api.github.com/repos/kwhobbs/HW-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kwhobbs/HW-3/downloads","issues_url":"https://api.github.com/repos/kwhobbs/HW-3/issues{/number}","pulls_url":"https://api.github.com/repos/kwhobbs/HW-3/pulls{/number}","milestones_url":"https://api.github.com/repos/kwhobbs/HW-3/milestones{/number}","notifications_url":"https://api.github.com/repos/kwhobbs/HW-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kwhobbs/HW-3/labels{/name}","releases_url":"https://api.github.com/repos/kwhobbs/HW-3/releases{/id}","deployments_url":"https://api.github.com/repos/kwhobbs/HW-3/deployments","created_at":"2016-10-19T13:25:43Z","updated_at":"2016-10-19T00:13:02Z","pushed_at":"2016-11-02T01:05:38Z","git_url":"git://github.com/kwhobbs/HW-3.git","ssh_url":"git@github.com:kwhobbs/HW-3.git","clone_url":"https://github.com/kwhobbs/HW-3.git","svn_url":"https://github.com/kwhobbs/HW-3","homepage":null,"size":6044,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"2016-09-Middlebury-Data-Science:master","ref":"master","sha":"58b1635580f7d92ba166342be3c55b3311c8fb3c","user":{"login":"2016-09-Middlebury-Data-Science","id":22043879,"avatar_url":"https://avatars.githubusercontent.com/u/22043879?v=3","gravatar_id":"","url":"https://api.github.com/users/2016-09-Middlebury-Data-Science","html_url":"https://github.com/2016-09-Middlebury-Data-Science","followers_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/followers","following_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/following{/other_user}","gists_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/gists{/gist_id}","starred_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/subscriptions","organizations_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/orgs","repos_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/repos","events_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/events{/privacy}","received_events_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/received_events","type":"Organization","site_admin":false},"repo":{"id":71302094,"name":"HW-3","full_name":"2016-09-Middlebury-Data-Science/HW-3","owner":{"login":"2016-09-Middlebury-Data-Science","id":22043879,"avatar_url":"https://avatars.githubusercontent.com/u/22043879?v=3","gravatar_id":"","url":"https://api.github.com/users/2016-09-Middlebury-Data-Science","html_url":"https://github.com/2016-09-Middlebury-Data-Science","followers_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/followers","following_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/following{/other_user}","gists_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/gists{/gist_id}","starred_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/subscriptions","organizations_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/orgs","repos_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/repos","events_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/events{/privacy}","received_events_url":"https://api.github.com/users/2016-09-Middlebury-Data-Science/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2016-09-Middlebury-Data-Science/HW-3","description":"Logistic Regression for Prediction","fork":false,"url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3","forks_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/forks","keys_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/teams","hooks_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/hooks","issue_events_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/issues/events{/number}","events_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/events","assignees_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/assignees{/user}","branches_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/branches{/branch}","tags_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/tags","blobs_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/statuses/{sha}","languages_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/languages","stargazers_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/stargazers","contributors_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/contributors","subscribers_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/subscribers","subscription_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/subscription","commits_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/contents/{+path}","compare_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/merges","archive_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/downloads","issues_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/issues{/number}","pulls_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/pulls{/number}","milestones_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/milestones{/number}","notifications_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/labels{/name}","releases_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/releases{/id}","deployments_url":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/deployments","created_at":"2016-10-19T00:07:56Z","updated_at":"2016-10-19T00:13:02Z","pushed_at":"2016-11-02T19:06:06Z","git_url":"git://github.com/2016-09-Middlebury-Data-Science/HW-3.git","ssh_url":"git@github.com:2016-09-Middlebury-Data-Science/HW-3.git","clone_url":"https://github.com/2016-09-Middlebury-Data-Science/HW-3.git","svn_url":"https://github.com/2016-09-Middlebury-Data-Science/HW-3","homepage":null,"size":6040,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":15,"forks":15,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/pulls/8"},"html":{"href":"https://github.com/2016-09-Middlebury-Data-Science/HW-3/pull/8"},"issue":{"href":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/issues/8"},"comments":{"href":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/2016-09-Middlebury-Data-Science/HW-3/statuses/ea4ea51817918463d4e2ec1856aed8e702269587"}}}}
{"actor":{"display_login":"rudeboybert"}}