{"action":"opened","issue":{"url":"https://api.github.com/repos/stan-dev/rstanarm/issues/307","repository_url":"https://api.github.com/repos/stan-dev/rstanarm","labels_url":"https://api.github.com/repos/stan-dev/rstanarm/issues/307/labels{/name}","comments_url":"https://api.github.com/repos/stan-dev/rstanarm/issues/307/comments","events_url":"https://api.github.com/repos/stan-dev/rstanarm/issues/307/events","html_url":"https://github.com/stan-dev/rstanarm/issues/307","id":344885982,"node_id":"MDU6SXNzdWUzNDQ4ODU5ODI=","number":307,"title":"Including all remaining variables via \".\" operator gives error in stan_gamm4","user":{"login":"csetraynor","id":33321804,"node_id":"MDQ6VXNlcjMzMzIxODA0","avatar_url":"https://avatars1.githubusercontent.com/u/33321804?v=4","gravatar_id":"","url":"https://api.github.com/users/csetraynor","html_url":"https://github.com/csetraynor","followers_url":"https://api.github.com/users/csetraynor/followers","following_url":"https://api.github.com/users/csetraynor/following{/other_user}","gists_url":"https://api.github.com/users/csetraynor/gists{/gist_id}","starred_url":"https://api.github.com/users/csetraynor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csetraynor/subscriptions","organizations_url":"https://api.github.com/users/csetraynor/orgs","repos_url":"https://api.github.com/users/csetraynor/repos","events_url":"https://api.github.com/users/csetraynor/events{/privacy}","received_events_url":"https://api.github.com/users/csetraynor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-26T15:09:41Z","updated_at":"2018-07-26T15:09:41Z","closed_at":null,"author_association":"NONE","body":"I get the following error if I use the \".\" operator to include all remaining variables:\r\n\r\nError in terms.formula(tmp, simplify = TRUE) : \r\n  '.' in formula and no 'data' argument\r\nReproducible example:\r\n\r\nlibrary(rstanarm)\r\nlibrary(dplyr)\r\n\r\nlibrary(rstanarm)\r\ndata(\"womensrole\", package = \"HSAUR3\")\r\nwomensrole_gamm4_1 <- rstanarm::stan_gamm4(cbind(agree, disagree) ~ offset(gender) + .,\r\n                              data = womensrole,\r\n                              family = binomial(link = \"logit\"), \r\n                              prior = student_t(df = 7), \r\n                              prior_intercept = student_t(df = 7))\r\n\r\nI checked for other functions such as stan_glm and the error does not happen. Is any version of rstanarm where this error is resolved?\r\n"}}
{"actor":{"display_login":"csetraynor"}}