{"action":"created","issue":{"url":"https://api.github.com/repos/stan-dev/example-models/issues/41","repository_url":"https://api.github.com/repos/stan-dev/example-models","labels_url":"https://api.github.com/repos/stan-dev/example-models/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/stan-dev/example-models/issues/41/comments","events_url":"https://api.github.com/repos/stan-dev/example-models/issues/41/events","html_url":"https://github.com/stan-dev/example-models/pull/41","id":130875578,"number":41,"title":"knitr pooling R code edits","user":{"login":"jgabry","id":7796803,"avatar_url":"https://avatars.githubusercontent.com/u/7796803?v=3","gravatar_id":"","url":"https://api.github.com/users/jgabry","html_url":"https://github.com/jgabry","followers_url":"https://api.github.com/users/jgabry/followers","following_url":"https://api.github.com/users/jgabry/following{/other_user}","gists_url":"https://api.github.com/users/jgabry/gists{/gist_id}","starred_url":"https://api.github.com/users/jgabry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgabry/subscriptions","organizations_url":"https://api.github.com/users/jgabry/orgs","repos_url":"https://api.github.com/users/jgabry/repos","events_url":"https://api.github.com/users/jgabry/events{/privacy}","received_events_url":"https://api.github.com/users/jgabry/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-03T01:09:52Z","updated_at":"2016-02-03T19:54:29Z","closed_at":"2016-02-03T18:19:37Z","pull_request":{"url":"https://api.github.com/repos/stan-dev/example-models/pulls/41","html_url":"https://github.com/stan-dev/example-models/pull/41","diff_url":"https://github.com/stan-dev/example-models/pull/41.diff","patch_url":"https://github.com/stan-dev/example-models/pull/41.patch"},"body":"@bob-carpenter I was going over this again in order to see if I could fit these models (or similar ones) in rstanarm and I couldn’t help myself from making a few changes to the R code. I figured I’d do this as a pull request so you can either decide you want to use these changes and merge it or just close the pull request if you prefer to leave the code as is.\n\nSummary: \n\n* re-use a single function for all of the similar scatterplots\n\n* use greek letters in axis labels where appropriate\n\n* simplify data creation and plotting code for bda_5_4 figure (the plot of observed vs estimated success rate with 80% intervals)\n\n* remove one section where the same data frame is created twice"},"comment":{"url":"https://api.github.com/repos/stan-dev/example-models/issues/comments/179430741","html_url":"https://github.com/stan-dev/example-models/pull/41#issuecomment-179430741","issue_url":"https://api.github.com/repos/stan-dev/example-models/issues/41","id":179430741,"user":{"login":"jgabry","id":7796803,"avatar_url":"https://avatars.githubusercontent.com/u/7796803?v=3","gravatar_id":"","url":"https://api.github.com/users/jgabry","html_url":"https://github.com/jgabry","followers_url":"https://api.github.com/users/jgabry/followers","following_url":"https://api.github.com/users/jgabry/following{/other_user}","gists_url":"https://api.github.com/users/jgabry/gists{/gist_id}","starred_url":"https://api.github.com/users/jgabry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgabry/subscriptions","organizations_url":"https://api.github.com/users/jgabry/orgs","repos_url":"https://api.github.com/users/jgabry/repos","events_url":"https://api.github.com/users/jgabry/events{/privacy}","received_events_url":"https://api.github.com/users/jgabry/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T19:54:29Z","updated_at":"2016-02-03T19:54:29Z","body":"On Wed, Feb 3, 2016 at 1:19 PM, Bob Carpenter <notifications@github.com>\nwrote:\n\n> Thanks. I'm always of two minds writing tutorials on how much to allow\n> myself to cut-and-paste. On the one hand, it makes the examples less\n> verbose and points out their commonalities, whic is good. On the other\n> hand, it makes them more indirect and less self-contained, which is bad.\n>\nYeah I agree. It's hard to find the right balance.\n"}}