{"action":"opened","issue":{"url":"https://api.github.com/repos/scipy/scipy/issues/8506","repository_url":"https://api.github.com/repos/scipy/scipy","labels_url":"https://api.github.com/repos/scipy/scipy/issues/8506/labels{/name}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/8506/comments","events_url":"https://api.github.com/repos/scipy/scipy/issues/8506/events","html_url":"https://github.com/scipy/scipy/issues/8506","id":301522914,"number":8506,"title":"scipy.stats.combine_pvalues with stouffer method cannot deal with p values that has `1.0`","user":{"login":"logust79","id":6090962,"avatar_url":"https://avatars1.githubusercontent.com/u/6090962?v=4","gravatar_id":"","url":"https://api.github.com/users/logust79","html_url":"https://github.com/logust79","followers_url":"https://api.github.com/users/logust79/followers","following_url":"https://api.github.com/users/logust79/following{/other_user}","gists_url":"https://api.github.com/users/logust79/gists{/gist_id}","starred_url":"https://api.github.com/users/logust79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logust79/subscriptions","organizations_url":"https://api.github.com/users/logust79/orgs","repos_url":"https://api.github.com/users/logust79/repos","events_url":"https://api.github.com/users/logust79/events{/privacy}","received_events_url":"https://api.github.com/users/logust79/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-01T19:07:13Z","updated_at":"2018-03-01T19:07:13Z","closed_at":null,"author_association":"NONE","body":"<<Please describe the issue in detail here, and for bug reports fill in the fields below.>>\r\n\r\nWhen using scipy.stats.combine_pvalues with stouffer method, when there is a 1.0 in the p value array, it returns `(-inf, 1.0)`\r\n\r\n\r\n### Reproducing code example:\r\n```\r\n<<A short code example that reproduces the problem. It should be self-contained, i.e., possible to run as-is via 'python myproblem.py'>>\r\n```\r\n>>> pvals = [1e-5,1.0]\r\n>>> stats.combine_pvalues(pvalues=pvals,method='stouffer')\r\n(-inf, 1.0)\r\n>>> stats.combine_pvalues(pvalues=pvals)\r\n(23.025850929940457, 0.0001251292546497022)\r\n\r\n### Error message:\r\n```\r\n<<Full error message, if any (starting from line Traceback: ...)>>\r\n```\r\nNA\r\n### Scipy/Numpy/Python version information:\r\n```\r\n<<Output from 'import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)'>>\r\n```\r\n1.0.0 1.13.3 sys.version_info(major=3, minor=6, micro=2, releaselevel='final', serial=0)\r\n\r\n\r\nAt last, thanks so much for this excellent package!"}}
{"actor":{"display_login":"logust79"}}