{"action":"created","comment":{"url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/pulls/comments/92319558","pull_request_review_id":12832218,"id":92319558,"diff_hunk":"@@ -988,3 +988,77 @@ findBestAlternateScenarios <- function(dfAlternateFeat,\n   dfOptResult\n }\n \n+#' @title\n+#' Generate ROC curve for a dataset.\n+#' @description Generates ROC curve and AUC for Sensitivity/Specificity or \n+#' Precision/Recall.\n+#' @param predictions A vector of predictions from a machine learning model.\n+#' @param labels A vector of the true labels. Must be the same length as \n+#' predictions.\n+#' @param aucType Can be \"SS\" or \"PR\". Defaults to SS.\n+#' @param plotFlg Binary value controlling plots Defaults to FALSE (no).\n+#' @return auc Integral AUC of ROC plot.\n+#'","path":"R/common.R","position":14,"original_position":14,"commit_id":"677323b9ea72af143ecb21b5aa172061ee291665","original_commit_id":"677323b9ea72af143ecb21b5aa172061ee291665","user":{"login":"levithatcher","id":2396979,"avatar_url":"https://avatars.githubusercontent.com/u/2396979?v=3","gravatar_id":"","url":"https://api.github.com/users/levithatcher","html_url":"https://github.com/levithatcher","followers_url":"https://api.github.com/users/levithatcher/followers","following_url":"https://api.github.com/users/levithatcher/following{/other_user}","gists_url":"https://api.github.com/users/levithatcher/gists{/gist_id}","starred_url":"https://api.github.com/users/levithatcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levithatcher/subscriptions","organizations_url":"https://api.github.com/users/levithatcher/orgs","repos_url":"https://api.github.com/users/levithatcher/repos","events_url":"https://api.github.com/users/levithatcher/events{/privacy}","received_events_url":"https://api.github.com/users/levithatcher/received_events","type":"User","site_admin":false},"body":"Great job on this function, Mike! Do you mind putting the type of values expected for this params (and the return)? We haven't standardized completely, but would love to. Example:\r\n\r\n- @param aucType A string. Indicates AU_ROC or AU_PR and can be \"SS\" or \"PR\". Defaults to SS.","created_at":"2016-12-14T04:08:29Z","updated_at":"2016-12-14T04:08:29Z","html_url":"https://github.com/HealthCatalystSLC/healthcareai-r/pull/152#discussion_r92319558","pull_request_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/pulls/152","_links":{"self":{"href":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/pulls/comments/92319558"},"html":{"href":"https://github.com/HealthCatalystSLC/healthcareai-r/pull/152#discussion_r92319558"},"pull_request":{"href":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/pulls/152"}}},"pull_request":{"url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/pulls/152","id":97845045,"html_url":"https://github.com/HealthCatalystSLC/healthcareai-r/pull/152","diff_url":"https://github.com/HealthCatalystSLC/healthcareai-r/pull/152.diff","patch_url":"https://github.com/HealthCatalystSLC/healthcareai-r/pull/152.patch","issue_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/issues/152","number":152,"state":"open","locked":false,"title":"AUC from Precision/Recall or Sensitivity/Specificity ROC curve","user":{"login":"mmastand","id":15145347,"avatar_url":"https://avatars.githubusercontent.com/u/15145347?v=3","gravatar_id":"","url":"https://api.github.com/users/mmastand","html_url":"https://github.com/mmastand","followers_url":"https://api.github.com/users/mmastand/followers","following_url":"https://api.github.com/users/mmastand/following{/other_user}","gists_url":"https://api.github.com/users/mmastand/gists{/gist_id}","starred_url":"https://api.github.com/users/mmastand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmastand/subscriptions","organizations_url":"https://api.github.com/users/mmastand/orgs","repos_url":"https://api.github.com/users/mmastand/repos","events_url":"https://api.github.com/users/mmastand/events{/privacy}","received_events_url":"https://api.github.com/users/mmastand/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-13T22:03:11Z","updated_at":"2016-12-14T04:20:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d15c35ea71fafc2a49f42fe5f6e5e6964f8e7d36","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/pulls/152/commits","review_comments_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/pulls/152/comments","review_comment_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/issues/152/comments","statuses_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/statuses/677323b9ea72af143ecb21b5aa172061ee291665","head":{"label":"HealthCatalystSLC:mikestestbranch","ref":"mikestestbranch","sha":"677323b9ea72af143ecb21b5aa172061ee291665","user":{"login":"HealthCatalystSLC","id":20213538,"avatar_url":"https://avatars.githubusercontent.com/u/20213538?v=3","gravatar_id":"","url":"https://api.github.com/users/HealthCatalystSLC","html_url":"https://github.com/HealthCatalystSLC","followers_url":"https://api.github.com/users/HealthCatalystSLC/followers","following_url":"https://api.github.com/users/HealthCatalystSLC/following{/other_user}","gists_url":"https://api.github.com/users/HealthCatalystSLC/gists{/gist_id}","starred_url":"https://api.github.com/users/HealthCatalystSLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HealthCatalystSLC/subscriptions","organizations_url":"https://api.github.com/users/HealthCatalystSLC/orgs","repos_url":"https://api.github.com/users/HealthCatalystSLC/repos","events_url":"https://api.github.com/users/HealthCatalystSLC/events{/privacy}","received_events_url":"https://api.github.com/users/HealthCatalystSLC/received_events","type":"Organization","site_admin":false},"repo":{"id":62257335,"name":"healthcareai-r","full_name":"HealthCatalystSLC/healthcareai-r","owner":{"login":"HealthCatalystSLC","id":20213538,"avatar_url":"https://avatars.githubusercontent.com/u/20213538?v=3","gravatar_id":"","url":"https://api.github.com/users/HealthCatalystSLC","html_url":"https://github.com/HealthCatalystSLC","followers_url":"https://api.github.com/users/HealthCatalystSLC/followers","following_url":"https://api.github.com/users/HealthCatalystSLC/following{/other_user}","gists_url":"https://api.github.com/users/HealthCatalystSLC/gists{/gist_id}","starred_url":"https://api.github.com/users/HealthCatalystSLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HealthCatalystSLC/subscriptions","organizations_url":"https://api.github.com/users/HealthCatalystSLC/orgs","repos_url":"https://api.github.com/users/HealthCatalystSLC/repos","events_url":"https://api.github.com/users/HealthCatalystSLC/events{/privacy}","received_events_url":"https://api.github.com/users/HealthCatalystSLC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HealthCatalystSLC/healthcareai-r","description":"R tools for healthcare machine learning","fork":false,"url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r","forks_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/forks","keys_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/teams","hooks_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/hooks","issue_events_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/issues/events{/number}","events_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/events","assignees_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/assignees{/user}","branches_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/branches{/branch}","tags_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/tags","blobs_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/git/refs{/sha}","trees_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/statuses/{sha}","languages_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/languages","stargazers_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/stargazers","contributors_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/contributors","subscribers_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/subscribers","subscription_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/subscription","commits_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/commits{/sha}","git_commits_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/git/commits{/sha}","comments_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/comments{/number}","issue_comment_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/issues/comments{/number}","contents_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/contents/{+path}","compare_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/merges","archive_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/downloads","issues_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/issues{/number}","pulls_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/pulls{/number}","milestones_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/milestones{/number}","notifications_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/labels{/name}","releases_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/releases{/id}","deployments_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/deployments","created_at":"2016-06-29T20:56:29Z","updated_at":"2016-12-05T18:29:08Z","pushed_at":"2016-12-13T22:04:10Z","git_url":"git://github.com/HealthCatalystSLC/healthcareai-r.git","ssh_url":"git@github.com:HealthCatalystSLC/healthcareai-r.git","clone_url":"https://github.com/HealthCatalystSLC/healthcareai-r.git","svn_url":"https://github.com/HealthCatalystSLC/healthcareai-r","homepage":"http://healthcare.ai/r","size":1861,"stargazers_count":20,"watchers_count":20,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":60,"forks":7,"open_issues":60,"watchers":20,"default_branch":"master"}},"base":{"label":"HealthCatalystSLC:master","ref":"master","sha":"676e1c22af011388bc7f3f80f40816428818caa5","user":{"login":"HealthCatalystSLC","id":20213538,"avatar_url":"https://avatars.githubusercontent.com/u/20213538?v=3","gravatar_id":"","url":"https://api.github.com/users/HealthCatalystSLC","html_url":"https://github.com/HealthCatalystSLC","followers_url":"https://api.github.com/users/HealthCatalystSLC/followers","following_url":"https://api.github.com/users/HealthCatalystSLC/following{/other_user}","gists_url":"https://api.github.com/users/HealthCatalystSLC/gists{/gist_id}","starred_url":"https://api.github.com/users/HealthCatalystSLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HealthCatalystSLC/subscriptions","organizations_url":"https://api.github.com/users/HealthCatalystSLC/orgs","repos_url":"https://api.github.com/users/HealthCatalystSLC/repos","events_url":"https://api.github.com/users/HealthCatalystSLC/events{/privacy}","received_events_url":"https://api.github.com/users/HealthCatalystSLC/received_events","type":"Organization","site_admin":false},"repo":{"id":62257335,"name":"healthcareai-r","full_name":"HealthCatalystSLC/healthcareai-r","owner":{"login":"HealthCatalystSLC","id":20213538,"avatar_url":"https://avatars.githubusercontent.com/u/20213538?v=3","gravatar_id":"","url":"https://api.github.com/users/HealthCatalystSLC","html_url":"https://github.com/HealthCatalystSLC","followers_url":"https://api.github.com/users/HealthCatalystSLC/followers","following_url":"https://api.github.com/users/HealthCatalystSLC/following{/other_user}","gists_url":"https://api.github.com/users/HealthCatalystSLC/gists{/gist_id}","starred_url":"https://api.github.com/users/HealthCatalystSLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HealthCatalystSLC/subscriptions","organizations_url":"https://api.github.com/users/HealthCatalystSLC/orgs","repos_url":"https://api.github.com/users/HealthCatalystSLC/repos","events_url":"https://api.github.com/users/HealthCatalystSLC/events{/privacy}","received_events_url":"https://api.github.com/users/HealthCatalystSLC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HealthCatalystSLC/healthcareai-r","description":"R tools for healthcare machine learning","fork":false,"url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r","forks_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/forks","keys_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/teams","hooks_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/hooks","issue_events_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/issues/events{/number}","events_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/events","assignees_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/assignees{/user}","branches_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/branches{/branch}","tags_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/tags","blobs_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/git/refs{/sha}","trees_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/statuses/{sha}","languages_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/languages","stargazers_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/stargazers","contributors_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/contributors","subscribers_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/subscribers","subscription_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/subscription","commits_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/commits{/sha}","git_commits_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/git/commits{/sha}","comments_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/comments{/number}","issue_comment_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/issues/comments{/number}","contents_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/contents/{+path}","compare_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/merges","archive_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/downloads","issues_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/issues{/number}","pulls_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/pulls{/number}","milestones_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/milestones{/number}","notifications_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/labels{/name}","releases_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/releases{/id}","deployments_url":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/deployments","created_at":"2016-06-29T20:56:29Z","updated_at":"2016-12-05T18:29:08Z","pushed_at":"2016-12-13T22:04:10Z","git_url":"git://github.com/HealthCatalystSLC/healthcareai-r.git","ssh_url":"git@github.com:HealthCatalystSLC/healthcareai-r.git","clone_url":"https://github.com/HealthCatalystSLC/healthcareai-r.git","svn_url":"https://github.com/HealthCatalystSLC/healthcareai-r","homepage":"http://healthcare.ai/r","size":1861,"stargazers_count":20,"watchers_count":20,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":60,"forks":7,"open_issues":60,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/pulls/152"},"html":{"href":"https://github.com/HealthCatalystSLC/healthcareai-r/pull/152"},"issue":{"href":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/issues/152"},"comments":{"href":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/issues/152/comments"},"review_comments":{"href":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/pulls/152/comments"},"review_comment":{"href":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/pulls/152/commits"},"statuses":{"href":"https://api.github.com/repos/HealthCatalystSLC/healthcareai-r/statuses/677323b9ea72af143ecb21b5aa172061ee291665"}}}}
{"actor":{"display_login":"levithatcher"}}