{"action":"created","issue":{"url":"https://api.github.com/repos/strengejacke/sjPlot/issues/263","repository_url":"https://api.github.com/repos/strengejacke/sjPlot","labels_url":"https://api.github.com/repos/strengejacke/sjPlot/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/strengejacke/sjPlot/issues/263/comments","events_url":"https://api.github.com/repos/strengejacke/sjPlot/issues/263/events","html_url":"https://github.com/strengejacke/sjPlot/issues/263","id":249696878,"number":263,"title":"make sjt.glmer() or have sjt.lmer() support objects from lme4::glmer","user":{"login":"DHLocke","id":16103942,"avatar_url":"https://avatars0.githubusercontent.com/u/16103942?v=4","gravatar_id":"","url":"https://api.github.com/users/DHLocke","html_url":"https://github.com/DHLocke","followers_url":"https://api.github.com/users/DHLocke/followers","following_url":"https://api.github.com/users/DHLocke/following{/other_user}","gists_url":"https://api.github.com/users/DHLocke/gists{/gist_id}","starred_url":"https://api.github.com/users/DHLocke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DHLocke/subscriptions","organizations_url":"https://api.github.com/users/DHLocke/orgs","repos_url":"https://api.github.com/users/DHLocke/repos","events_url":"https://api.github.com/users/DHLocke/events{/privacy}","received_events_url":"https://api.github.com/users/DHLocke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-11T17:18:43Z","updated_at":"2017-08-14T00:46:06Z","closed_at":null,"body":"When applying sjt.lmer() to a glmer() object this error is returned\r\n\r\n\"Error in apply(all.coefs, 1, function(x) length(unique(x))) : \r\n  dim(X) must have a positive length\"\r\n\r\nWhen applying sjt.glmer() [is this a function?] to a glmer() object this error is returned\r\n\r\nError in UseMethod(\"fixef\") : \r\n  no applicable method for 'fixef' applied to an object of class \"logical\"\r\n\r\nsjt.lmer() is such a useful function, I wish I could do the same with glmer model.s"},"comment":{"url":"https://api.github.com/repos/strengejacke/sjPlot/issues/comments/322078329","html_url":"https://github.com/strengejacke/sjPlot/issues/263#issuecomment-322078329","issue_url":"https://api.github.com/repos/strengejacke/sjPlot/issues/263","id":322078329,"user":{"login":"DHLocke","id":16103942,"avatar_url":"https://avatars0.githubusercontent.com/u/16103942?v=4","gravatar_id":"","url":"https://api.github.com/users/DHLocke","html_url":"https://github.com/DHLocke","followers_url":"https://api.github.com/users/DHLocke/followers","following_url":"https://api.github.com/users/DHLocke/following{/other_user}","gists_url":"https://api.github.com/users/DHLocke/gists{/gist_id}","starred_url":"https://api.github.com/users/DHLocke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DHLocke/subscriptions","organizations_url":"https://api.github.com/users/DHLocke/orgs","repos_url":"https://api.github.com/users/DHLocke/repos","events_url":"https://api.github.com/users/DHLocke/events{/privacy}","received_events_url":"https://api.github.com/users/DHLocke/received_events","type":"User","site_admin":false},"created_at":"2017-08-14T00:46:05Z","updated_at":"2017-08-14T00:46:05Z","body":"Thanks Daniel.\n\nHow does the below look?\n\n- Dexter\n\nI've worked up this repex:\n\n# repex for sjt.plot\n# more or less replicates my data\ntestDF <- data.frame(site = rep(1:51, each=2),\n                     city = c(rep(\"A\", times = 42), rep(\"B\", times = 60)),\n                     trx  = rep(c(\"X\", \"Y\")),\n                     rich = rpois(102, 12.28))\n\n# maybe rpois is incorrect? My actually data has this distribution:\n# Min. 1st Qu.  Median    Mean 3rd Qu.    Max.\n# 1.00   11.00   18.00   22.12   28.00  116.00\n\n# looks like my bassic set up\nhead(testDF)\n\n# I have count data, this specifies a model implicitly assuming normal dist\nwrongTest <- lmer(log(rich + 1) ~ trx*city + (1 | site),\n            data=testDF, REML=FALSE)\n\n# here is the actual model I'm interested in\nTest <- glmer(rich ~ trx*city + (1 | site),\n              data=testDF, family=poisson)\n\nsjt.lmer(Test)                       # returns error, as reported earlier\nsjt.lmer(Test, wrongTest)     # same here\n\n\n\nOn Fri, Aug 11, 2017 at 2:56 PM, Daniel <notifications@github.com> wrote:\n\n> It usually works with glmer as well. Could you provide a reproducible\n> example?\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/strengejacke/sjPlot/issues/263#issuecomment-321892547>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/APW6BjWqJJOnI2EWehdzrnlXUejoEy0rks5sXKPGgaJpZM4O06ts>\n> .\n>\n"}}
{"actor":{"display_login":"DHLocke"}}