{"action":"created","comment":{"url":"https://api.github.com/repos/statsmodels/statsmodels/pulls/comments/61366010","id":61366010,"diff_hunk":"@@ -1450,9 +1448,13 @@ def __init__(self):\n \n \n class TestTweediePower2(CheckTweedie):\n-    def __init__(self):\n+    @classmethod\n+    def setupClass(self):\n         from .results.results_glm import CpunishTweediePower2\n-        super(TestTweediePower2, self).__init__()\n+        from statsmodels.datasets.cpunish import load_pandas\n+        self.data = load_pandas()\n+        self.exog = self.data.exog[['INCOME', 'SOUTH']]\n+        self.endog = self.data.endog","path":"statsmodels/genmod/tests/test_glm.py","position":null,"original_position":41,"commit_id":"512dccfdd762e373a1b46132debe31838e4853af","original_commit_id":"512dccfdd762e373a1b46132debe31838e4853af","user":{"login":"thequackdaddy","id":8186432,"avatar_url":"https://avatars.githubusercontent.com/u/8186432?v=3","gravatar_id":"","url":"https://api.github.com/users/thequackdaddy","html_url":"https://github.com/thequackdaddy","followers_url":"https://api.github.com/users/thequackdaddy/followers","following_url":"https://api.github.com/users/thequackdaddy/following{/other_user}","gists_url":"https://api.github.com/users/thequackdaddy/gists{/gist_id}","starred_url":"https://api.github.com/users/thequackdaddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thequackdaddy/subscriptions","organizations_url":"https://api.github.com/users/thequackdaddy/orgs","repos_url":"https://api.github.com/users/thequackdaddy/repos","events_url":"https://api.github.com/users/thequackdaddy/events{/privacy}","received_events_url":"https://api.github.com/users/thequackdaddy/received_events","type":"User","site_admin":false},"body":"Ahhh... \r\n\r\nI thought about a super but I couldn't get that to work (in about 2 tries)... Didn't attempt this way. \r\n\r\nThanks for the tip.","created_at":"2016-04-28T02:21:03Z","updated_at":"2016-04-28T02:21:03Z","html_url":"https://github.com/statsmodels/statsmodels/pull/2872#discussion_r61366010","pull_request_url":"https://api.github.com/repos/statsmodels/statsmodels/pulls/2872","_links":{"self":{"href":"https://api.github.com/repos/statsmodels/statsmodels/pulls/comments/61366010"},"html":{"href":"https://github.com/statsmodels/statsmodels/pull/2872#discussion_r61366010"},"pull_request":{"href":"https://api.github.com/repos/statsmodels/statsmodels/pulls/2872"}}},"pull_request":{"url":"https://api.github.com/repos/statsmodels/statsmodels/pulls/2872","id":64272486,"html_url":"https://github.com/statsmodels/statsmodels/pull/2872","diff_url":"https://github.com/statsmodels/statsmodels/pull/2872.diff","patch_url":"https://github.com/statsmodels/statsmodels/pull/2872.patch","issue_url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2872","number":2872,"state":"open","locked":false,"title":"ENH: GLM Tweedie Family","user":{"login":"thequackdaddy","id":8186432,"avatar_url":"https://avatars.githubusercontent.com/u/8186432?v=3","gravatar_id":"","url":"https://api.github.com/users/thequackdaddy","html_url":"https://github.com/thequackdaddy","followers_url":"https://api.github.com/users/thequackdaddy/followers","following_url":"https://api.github.com/users/thequackdaddy/following{/other_user}","gists_url":"https://api.github.com/users/thequackdaddy/gists{/gist_id}","starred_url":"https://api.github.com/users/thequackdaddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thequackdaddy/subscriptions","organizations_url":"https://api.github.com/users/thequackdaddy/orgs","repos_url":"https://api.github.com/users/thequackdaddy/repos","events_url":"https://api.github.com/users/thequackdaddy/events{/privacy}","received_events_url":"https://api.github.com/users/thequackdaddy/received_events","type":"User","site_admin":false},"body":"Hello,\r\n\r\nThis will (eventually) resolve #2858 and part of #2804 . \r\n\r\nThis adds Tweedie to the family of distributions. \r\n\r\nA few shortcomings...\r\n\r\n* I don't have Stata so none of my checks are from Stata. (Also, I'm not sure where the ansocombe residuals came from. Perhaps this is a stata thing too?)\r\n* As the deviance function doesn't like it when endog=0 or the shape parameter is 1 or 2, I've set endog to have a min of 0.1 and used WolframAlpha to derive the deviance function for the special case shape parameters (1 and 2). \r\n* All the residuals seem to match except working residuals when var_power = 1 and link_power = 0 (i.e., the log link)\r\n* I don't really know how to write the loglikihood function for this. Its in the Glenn Myers PowerPoint and some papers, but haven't cracked it yet. \r\n* The documentation is (of course) incomplete. As I get a get a better handle for how this will work, I'll start writing it. \r\n\r\nSo let's get rockin.\r\n\r\n---\r\nUpdated 3/28/2016","created_at":"2016-03-27T18:50:46Z","updated_at":"2016-04-28T02:21:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a348380beadaef82e4734af02019781ecd40605c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/statsmodels/statsmodels/pulls/2872/commits","review_comments_url":"https://api.github.com/repos/statsmodels/statsmodels/pulls/2872/comments","review_comment_url":"https://api.github.com/repos/statsmodels/statsmodels/pulls/comments{/number}","comments_url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2872/comments","statuses_url":"https://api.github.com/repos/statsmodels/statsmodels/statuses/512dccfdd762e373a1b46132debe31838e4853af","head":{"label":"thequackdaddy:tweedie","ref":"tweedie","sha":"512dccfdd762e373a1b46132debe31838e4853af","user":{"login":"thequackdaddy","id":8186432,"avatar_url":"https://avatars.githubusercontent.com/u/8186432?v=3","gravatar_id":"","url":"https://api.github.com/users/thequackdaddy","html_url":"https://github.com/thequackdaddy","followers_url":"https://api.github.com/users/thequackdaddy/followers","following_url":"https://api.github.com/users/thequackdaddy/following{/other_user}","gists_url":"https://api.github.com/users/thequackdaddy/gists{/gist_id}","starred_url":"https://api.github.com/users/thequackdaddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thequackdaddy/subscriptions","organizations_url":"https://api.github.com/users/thequackdaddy/orgs","repos_url":"https://api.github.com/users/thequackdaddy/repos","events_url":"https://api.github.com/users/thequackdaddy/events{/privacy}","received_events_url":"https://api.github.com/users/thequackdaddy/received_events","type":"User","site_admin":false},"repo":{"id":51177039,"name":"statsmodels","full_name":"thequackdaddy/statsmodels","owner":{"login":"thequackdaddy","id":8186432,"avatar_url":"https://avatars.githubusercontent.com/u/8186432?v=3","gravatar_id":"","url":"https://api.github.com/users/thequackdaddy","html_url":"https://github.com/thequackdaddy","followers_url":"https://api.github.com/users/thequackdaddy/followers","following_url":"https://api.github.com/users/thequackdaddy/following{/other_user}","gists_url":"https://api.github.com/users/thequackdaddy/gists{/gist_id}","starred_url":"https://api.github.com/users/thequackdaddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thequackdaddy/subscriptions","organizations_url":"https://api.github.com/users/thequackdaddy/orgs","repos_url":"https://api.github.com/users/thequackdaddy/repos","events_url":"https://api.github.com/users/thequackdaddy/events{/privacy}","received_events_url":"https://api.github.com/users/thequackdaddy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thequackdaddy/statsmodels","description":"Statsmodels: statistical modeling and econometrics in Python","fork":true,"url":"https://api.github.com/repos/thequackdaddy/statsmodels","forks_url":"https://api.github.com/repos/thequackdaddy/statsmodels/forks","keys_url":"https://api.github.com/repos/thequackdaddy/statsmodels/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thequackdaddy/statsmodels/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thequackdaddy/statsmodels/teams","hooks_url":"https://api.github.com/repos/thequackdaddy/statsmodels/hooks","issue_events_url":"https://api.github.com/repos/thequackdaddy/statsmodels/issues/events{/number}","events_url":"https://api.github.com/repos/thequackdaddy/statsmodels/events","assignees_url":"https://api.github.com/repos/thequackdaddy/statsmodels/assignees{/user}","branches_url":"https://api.github.com/repos/thequackdaddy/statsmodels/branches{/branch}","tags_url":"https://api.github.com/repos/thequackdaddy/statsmodels/tags","blobs_url":"https://api.github.com/repos/thequackdaddy/statsmodels/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thequackdaddy/statsmodels/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thequackdaddy/statsmodels/git/refs{/sha}","trees_url":"https://api.github.com/repos/thequackdaddy/statsmodels/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thequackdaddy/statsmodels/statuses/{sha}","languages_url":"https://api.github.com/repos/thequackdaddy/statsmodels/languages","stargazers_url":"https://api.github.com/repos/thequackdaddy/statsmodels/stargazers","contributors_url":"https://api.github.com/repos/thequackdaddy/statsmodels/contributors","subscribers_url":"https://api.github.com/repos/thequackdaddy/statsmodels/subscribers","subscription_url":"https://api.github.com/repos/thequackdaddy/statsmodels/subscription","commits_url":"https://api.github.com/repos/thequackdaddy/statsmodels/commits{/sha}","git_commits_url":"https://api.github.com/repos/thequackdaddy/statsmodels/git/commits{/sha}","comments_url":"https://api.github.com/repos/thequackdaddy/statsmodels/comments{/number}","issue_comment_url":"https://api.github.com/repos/thequackdaddy/statsmodels/issues/comments{/number}","contents_url":"https://api.github.com/repos/thequackdaddy/statsmodels/contents/{+path}","compare_url":"https://api.github.com/repos/thequackdaddy/statsmodels/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thequackdaddy/statsmodels/merges","archive_url":"https://api.github.com/repos/thequackdaddy/statsmodels/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thequackdaddy/statsmodels/downloads","issues_url":"https://api.github.com/repos/thequackdaddy/statsmodels/issues{/number}","pulls_url":"https://api.github.com/repos/thequackdaddy/statsmodels/pulls{/number}","milestones_url":"https://api.github.com/repos/thequackdaddy/statsmodels/milestones{/number}","notifications_url":"https://api.github.com/repos/thequackdaddy/statsmodels/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thequackdaddy/statsmodels/labels{/name}","releases_url":"https://api.github.com/repos/thequackdaddy/statsmodels/releases{/id}","deployments_url":"https://api.github.com/repos/thequackdaddy/statsmodels/deployments","created_at":"2016-02-05T22:05:34Z","updated_at":"2016-02-05T22:05:39Z","pushed_at":"2016-04-28T01:47:31Z","git_url":"git://github.com/thequackdaddy/statsmodels.git","ssh_url":"git@github.com:thequackdaddy/statsmodels.git","clone_url":"https://github.com/thequackdaddy/statsmodels.git","svn_url":"https://github.com/thequackdaddy/statsmodels","homepage":"http://statsmodels.sourceforge.net/devel/","size":22640,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"statsmodels:master","ref":"master","sha":"81be990eb59931acffa2cea70a10380061666ce8","user":{"login":"statsmodels","id":717666,"avatar_url":"https://avatars.githubusercontent.com/u/717666?v=3","gravatar_id":"","url":"https://api.github.com/users/statsmodels","html_url":"https://github.com/statsmodels","followers_url":"https://api.github.com/users/statsmodels/followers","following_url":"https://api.github.com/users/statsmodels/following{/other_user}","gists_url":"https://api.github.com/users/statsmodels/gists{/gist_id}","starred_url":"https://api.github.com/users/statsmodels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/statsmodels/subscriptions","organizations_url":"https://api.github.com/users/statsmodels/orgs","repos_url":"https://api.github.com/users/statsmodels/repos","events_url":"https://api.github.com/users/statsmodels/events{/privacy}","received_events_url":"https://api.github.com/users/statsmodels/received_events","type":"Organization","site_admin":false},"repo":{"id":1885237,"name":"statsmodels","full_name":"statsmodels/statsmodels","owner":{"login":"statsmodels","id":717666,"avatar_url":"https://avatars.githubusercontent.com/u/717666?v=3","gravatar_id":"","url":"https://api.github.com/users/statsmodels","html_url":"https://github.com/statsmodels","followers_url":"https://api.github.com/users/statsmodels/followers","following_url":"https://api.github.com/users/statsmodels/following{/other_user}","gists_url":"https://api.github.com/users/statsmodels/gists{/gist_id}","starred_url":"https://api.github.com/users/statsmodels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/statsmodels/subscriptions","organizations_url":"https://api.github.com/users/statsmodels/orgs","repos_url":"https://api.github.com/users/statsmodels/repos","events_url":"https://api.github.com/users/statsmodels/events{/privacy}","received_events_url":"https://api.github.com/users/statsmodels/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/statsmodels/statsmodels","description":"Statsmodels: statistical modeling and econometrics in Python","fork":false,"url":"https://api.github.com/repos/statsmodels/statsmodels","forks_url":"https://api.github.com/repos/statsmodels/statsmodels/forks","keys_url":"https://api.github.com/repos/statsmodels/statsmodels/keys{/key_id}","collaborators_url":"https://api.github.com/repos/statsmodels/statsmodels/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/statsmodels/statsmodels/teams","hooks_url":"https://api.github.com/repos/statsmodels/statsmodels/hooks","issue_events_url":"https://api.github.com/repos/statsmodels/statsmodels/issues/events{/number}","events_url":"https://api.github.com/repos/statsmodels/statsmodels/events","assignees_url":"https://api.github.com/repos/statsmodels/statsmodels/assignees{/user}","branches_url":"https://api.github.com/repos/statsmodels/statsmodels/branches{/branch}","tags_url":"https://api.github.com/repos/statsmodels/statsmodels/tags","blobs_url":"https://api.github.com/repos/statsmodels/statsmodels/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/statsmodels/statsmodels/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/statsmodels/statsmodels/git/refs{/sha}","trees_url":"https://api.github.com/repos/statsmodels/statsmodels/git/trees{/sha}","statuses_url":"https://api.github.com/repos/statsmodels/statsmodels/statuses/{sha}","languages_url":"https://api.github.com/repos/statsmodels/statsmodels/languages","stargazers_url":"https://api.github.com/repos/statsmodels/statsmodels/stargazers","contributors_url":"https://api.github.com/repos/statsmodels/statsmodels/contributors","subscribers_url":"https://api.github.com/repos/statsmodels/statsmodels/subscribers","subscription_url":"https://api.github.com/repos/statsmodels/statsmodels/subscription","commits_url":"https://api.github.com/repos/statsmodels/statsmodels/commits{/sha}","git_commits_url":"https://api.github.com/repos/statsmodels/statsmodels/git/commits{/sha}","comments_url":"https://api.github.com/repos/statsmodels/statsmodels/comments{/number}","issue_comment_url":"https://api.github.com/repos/statsmodels/statsmodels/issues/comments{/number}","contents_url":"https://api.github.com/repos/statsmodels/statsmodels/contents/{+path}","compare_url":"https://api.github.com/repos/statsmodels/statsmodels/compare/{base}...{head}","merges_url":"https://api.github.com/repos/statsmodels/statsmodels/merges","archive_url":"https://api.github.com/repos/statsmodels/statsmodels/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/statsmodels/statsmodels/downloads","issues_url":"https://api.github.com/repos/statsmodels/statsmodels/issues{/number}","pulls_url":"https://api.github.com/repos/statsmodels/statsmodels/pulls{/number}","milestones_url":"https://api.github.com/repos/statsmodels/statsmodels/milestones{/number}","notifications_url":"https://api.github.com/repos/statsmodels/statsmodels/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/statsmodels/statsmodels/labels{/name}","releases_url":"https://api.github.com/repos/statsmodels/statsmodels/releases{/id}","deployments_url":"https://api.github.com/repos/statsmodels/statsmodels/deployments","created_at":"2011-06-12T17:04:50Z","updated_at":"2016-04-27T21:58:09Z","pushed_at":"2016-04-28T01:47:32Z","git_url":"git://github.com/statsmodels/statsmodels.git","ssh_url":"git@github.com:statsmodels/statsmodels.git","clone_url":"https://github.com/statsmodels/statsmodels.git","svn_url":"https://github.com/statsmodels/statsmodels","homepage":"http://statsmodels.sourceforge.net/devel/","size":36388,"stargazers_count":1410,"watchers_count":1410,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":680,"mirror_url":null,"open_issues_count":1247,"forks":680,"open_issues":1247,"watchers":1410,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/statsmodels/statsmodels/pulls/2872"},"html":{"href":"https://github.com/statsmodels/statsmodels/pull/2872"},"issue":{"href":"https://api.github.com/repos/statsmodels/statsmodels/issues/2872"},"comments":{"href":"https://api.github.com/repos/statsmodels/statsmodels/issues/2872/comments"},"review_comments":{"href":"https://api.github.com/repos/statsmodels/statsmodels/pulls/2872/comments"},"review_comment":{"href":"https://api.github.com/repos/statsmodels/statsmodels/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/statsmodels/statsmodels/pulls/2872/commits"},"statuses":{"href":"https://api.github.com/repos/statsmodels/statsmodels/statuses/512dccfdd762e373a1b46132debe31838e4853af"}}}}