{"action":"closed","issue":{"url":"https://api.github.com/repos/florianhartig/DHARMa/issues/48","repository_url":"https://api.github.com/repos/florianhartig/DHARMa","labels_url":"https://api.github.com/repos/florianhartig/DHARMa/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/florianhartig/DHARMa/issues/48/comments","events_url":"https://api.github.com/repos/florianhartig/DHARMa/issues/48/events","html_url":"https://github.com/florianhartig/DHARMa/issues/48","id":302077399,"number":48,"title":"Simulated overdispersion correct for glmer.nb?","user":{"login":"florianhartig","id":5457753,"avatar_url":"https://avatars0.githubusercontent.com/u/5457753?v=4","gravatar_id":"","url":"https://api.github.com/users/florianhartig","html_url":"https://github.com/florianhartig","followers_url":"https://api.github.com/users/florianhartig/followers","following_url":"https://api.github.com/users/florianhartig/following{/other_user}","gists_url":"https://api.github.com/users/florianhartig/gists{/gist_id}","starred_url":"https://api.github.com/users/florianhartig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florianhartig/subscriptions","organizations_url":"https://api.github.com/users/florianhartig/orgs","repos_url":"https://api.github.com/users/florianhartig/repos","events_url":"https://api.github.com/users/florianhartig/events{/privacy}","received_events_url":"https://api.github.com/users/florianhartig/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/florianhartig/DHARMa/milestones/3","html_url":"https://github.com/florianhartig/DHARMa/milestone/3","labels_url":"https://api.github.com/repos/florianhartig/DHARMa/milestones/3/labels","id":2397606,"number":3,"title":"0.1.6 Release","description":"","creator":{"login":"florianhartig","id":5457753,"avatar_url":"https://avatars0.githubusercontent.com/u/5457753?v=4","gravatar_id":"","url":"https://api.github.com/users/florianhartig","html_url":"https://github.com/florianhartig","followers_url":"https://api.github.com/users/florianhartig/followers","following_url":"https://api.github.com/users/florianhartig/following{/other_user}","gists_url":"https://api.github.com/users/florianhartig/gists{/gist_id}","starred_url":"https://api.github.com/users/florianhartig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florianhartig/subscriptions","organizations_url":"https://api.github.com/users/florianhartig/orgs","repos_url":"https://api.github.com/users/florianhartig/repos","events_url":"https://api.github.com/users/florianhartig/events{/privacy}","received_events_url":"https://api.github.com/users/florianhartig/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":6,"state":"open","created_at":"2017-03-20T12:17:47Z","updated_at":"2018-03-18T12:03:01Z","due_on":"2017-04-30T07:00:00Z","closed_at":null},"comments":1,"created_at":"2018-03-04T11:18:58Z","updated_at":"2018-03-18T12:03:01Z","closed_at":"2018-03-18T12:03:01Z","author_association":"OWNER","body":"Goes back to https://github.com/florianhartig/DHARMa/issues/47 - looks as if the simulated overdispersion test with glmer.nb and refit = T doesn't perform as expected \r\n\r\n```\r\nlibrary(lme4)\r\n\r\ntestData = createData(sampleSize = 300, overdispersion = 5, randomEffectVariance = 0, family = poisson())\r\nfittedModel <- glmer.nb(observedResponse ~ Environment1 + (1|group) , data = testData)\r\nsimulationOutput <- simulateResiduals(fittedModel = fittedModel)\r\nplot(simulationOutput, rank = T)\r\n\r\n# works\r\ntestOverdispersion(simulationOutput)\r\n\r\n# works, but produces overdispersion! -> new ticket\r\nsimulationOutput2 <- simulateResiduals(fittedModel = fittedModel, refit = T)\r\ntestOverdispersion(simulationOutput2)\r\n\r\n# doesn't work\r\ntestOverdispersionParametric(fittedModel)\r\n```"}}
{"actor":{"display_login":"florianhartig"}}