{"action":"created","issue":{"url":"https://api.github.com/repos/paul-buerkner/brms/issues/551","repository_url":"https://api.github.com/repos/paul-buerkner/brms","labels_url":"https://api.github.com/repos/paul-buerkner/brms/issues/551/labels{/name}","comments_url":"https://api.github.com/repos/paul-buerkner/brms/issues/551/comments","events_url":"https://api.github.com/repos/paul-buerkner/brms/issues/551/events","html_url":"https://github.com/paul-buerkner/brms/issues/551","id":380521037,"node_id":"MDU6SXNzdWUzODA1MjEwMzc=","number":551,"title":"Problem with newdata in fitted","user":{"login":"jerlich","id":2465395,"node_id":"MDQ6VXNlcjI0NjUzOTU=","avatar_url":"https://avatars3.githubusercontent.com/u/2465395?v=4","gravatar_id":"","url":"https://api.github.com/users/jerlich","html_url":"https://github.com/jerlich","followers_url":"https://api.github.com/users/jerlich/followers","following_url":"https://api.github.com/users/jerlich/following{/other_user}","gists_url":"https://api.github.com/users/jerlich/gists{/gist_id}","starred_url":"https://api.github.com/users/jerlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerlich/subscriptions","organizations_url":"https://api.github.com/users/jerlich/orgs","repos_url":"https://api.github.com/users/jerlich/repos","events_url":"https://api.github.com/users/jerlich/events{/privacy}","received_events_url":"https://api.github.com/users/jerlich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-14T03:32:37Z","updated_at":"2018-11-14T13:06:39Z","closed_at":null,"author_association":"NONE","body":"```\r\n> new_fit2$version\r\n$brms\r\n[1] ‘2.1.0’\r\n\r\n$rstan\r\n[1] ‘2.17.3’\r\n\r\n> newdata <- tibble(treat = 'L',\r\n+                   delay = 10,\r\n+                   rewmag = 10,\r\n+                   subjid = subjids,smag = 4\r\n+ )\r\n> fitted(new_fit2, newdata = newdata, nsamples = 10)\r\nError in model.matrix.default(terms, data) : \r\n  model frame and formula mismatch in model.matrix()\r\n\r\n> new_fit2$formula\r\nchoice ~ inv_logit((rewmag/(1 + exp(logk) * delay) - smag)/noise) \r\nnoise ~ 0 + treat + (1 | subjid)\r\nlogk ~ 0 + treat + (treat | subjid)\r\n```\r\n\r\nIt seems to be related to the `0 + ...` fixed effects, since a similar model without that doesn't give the error."},"comment":{"url":"https://api.github.com/repos/paul-buerkner/brms/issues/comments/438655254","html_url":"https://github.com/paul-buerkner/brms/issues/551#issuecomment-438655254","issue_url":"https://api.github.com/repos/paul-buerkner/brms/issues/551","id":438655254,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODY1NTI1NA==","user":{"login":"paul-buerkner","id":12938496,"node_id":"MDQ6VXNlcjEyOTM4NDk2","avatar_url":"https://avatars3.githubusercontent.com/u/12938496?v=4","gravatar_id":"","url":"https://api.github.com/users/paul-buerkner","html_url":"https://github.com/paul-buerkner","followers_url":"https://api.github.com/users/paul-buerkner/followers","following_url":"https://api.github.com/users/paul-buerkner/following{/other_user}","gists_url":"https://api.github.com/users/paul-buerkner/gists{/gist_id}","starred_url":"https://api.github.com/users/paul-buerkner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paul-buerkner/subscriptions","organizations_url":"https://api.github.com/users/paul-buerkner/orgs","repos_url":"https://api.github.com/users/paul-buerkner/repos","events_url":"https://api.github.com/users/paul-buerkner/events{/privacy}","received_events_url":"https://api.github.com/users/paul-buerkner/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T13:06:39Z","updated_at":"2018-11-14T13:06:39Z","author_association":"OWNER","body":"Ok. Can provide a minimal reproducible example for me to test this myself?"}}
{"actor":{"display_login":"paul-buerkner"}}