{"action":"created","issue":{"url":"https://api.github.com/repos/rmcelreath/rethinking/issues/12","labels_url":"https://api.github.com/repos/rmcelreath/rethinking/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/rmcelreath/rethinking/issues/12/comments","events_url":"https://api.github.com/repos/rmcelreath/rethinking/issues/12/events","html_url":"https://github.com/rmcelreath/rethinking/issues/12","id":106083823,"number":12,"title":"Matrix notation?","user":{"login":"joelgombin","id":1918735,"avatar_url":"https://avatars.githubusercontent.com/u/1918735?v=3","gravatar_id":"","url":"https://api.github.com/users/joelgombin","html_url":"https://github.com/joelgombin","followers_url":"https://api.github.com/users/joelgombin/followers","following_url":"https://api.github.com/users/joelgombin/following{/other_user}","gists_url":"https://api.github.com/users/joelgombin/gists{/gist_id}","starred_url":"https://api.github.com/users/joelgombin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelgombin/subscriptions","organizations_url":"https://api.github.com/users/joelgombin/orgs","repos_url":"https://api.github.com/users/joelgombin/repos","events_url":"https://api.github.com/users/joelgombin/events{/privacy}","received_events_url":"https://api.github.com/users/joelgombin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-11T20:03:58Z","updated_at":"2015-09-14T08:45:40Z","closed_at":null,"body":"Hi,\r\n\r\nthanks for this package, which seems really great. I also enjoyed the book a lot.\r\n\r\nI wondered if there is a way in  `map2stan` to use matrix notation, as is possible in stan. Suppose for example I have a matrix of covariates `X` and a vector of parameters `B`, such that `y ~ XB`, is there anyway to indicate it in map2stan? \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/rmcelreath/rethinking/issues/comments/140003385","html_url":"https://github.com/rmcelreath/rethinking/issues/12#issuecomment-140003385","issue_url":"https://api.github.com/repos/rmcelreath/rethinking/issues/12","id":140003385,"user":{"login":"vasishth","id":120767,"avatar_url":"https://avatars.githubusercontent.com/u/120767?v=3","gravatar_id":"","url":"https://api.github.com/users/vasishth","html_url":"https://github.com/vasishth","followers_url":"https://api.github.com/users/vasishth/followers","following_url":"https://api.github.com/users/vasishth/following{/other_user}","gists_url":"https://api.github.com/users/vasishth/gists{/gist_id}","starred_url":"https://api.github.com/users/vasishth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasishth/subscriptions","organizations_url":"https://api.github.com/users/vasishth/orgs","repos_url":"https://api.github.com/users/vasishth/repos","events_url":"https://api.github.com/users/vasishth/events{/privacy}","received_events_url":"https://api.github.com/users/vasishth/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T08:45:40Z","updated_at":"2015-09-14T08:45:40Z","body":"Hi Richard,\n\ntake a look at our tutorial. I think the matrix notation does tend to be\nfaster, and it is certainly easier to generalize, as far as LMMs go:\n\nhttp://www.ling.uni-potsdam.de/~vasishth/statistics/BayesLMMs.html\n\nAlso see the example KB07 using Stan in RePsychLing:\n\nhttps://github.com/dmbates/RePsychLing\n\n--\nShravan Vasishth\nProfessor for Psycholinguistics and Neurolinguistics\nDepartment of Linguistics\nUniversity of Potsdam, Germany\nhttp://www.ling.uni-potsdam.de/~vasishth\n\nOn Mon, Sep 14, 2015 at 10:40 AM, Richard McElreath <\nnotifications@github.com> wrote:\n\n> Hi, Joel.\n>\n> If there is a way to specify the design matrix style linear model, it's not\n> really supported. The Stan team has told me that it's not any faster to do\n> it that way, so I haven't invested any time in it.\n>\n> But it might not be much work to add it, really. I'll add it to the wish\n> list.\n>\n> On Fri, Sep 11, 2015 at 10:03 PM, Joel Gombin <notifications@github.com>\n> wrote:\n>\n> > Hi,\n> >\n> > thanks for this package, which seems really great. I also enjoyed the\n> book\n> > a lot.\n> >\n> > I wondered if there is a way in map2stan to use matrix notation, as is\n> > possible in stan. Suppose for example I have a matrix of covariates X and\n> > a vector of parameters B, such that y ~ XB, is there anyway to indicate\n> > it in map2stan?\n> >\n> > Thanks!\n> >\n> > —\n> > Reply to this email directly or view it on GitHub\n> > <https://github.com/rmcelreath/rethinking/issues/12>.\n> >\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/rmcelreath/rethinking/issues/12#issuecomment-140001629>\n> .\n>\n"}}