tag:blogger.com,1999:blog-3240271627873788873.post4590231971683730250..comments2024-03-26T06:46:11.752-04:00Comments on Doing Bayesian Data Analysis: I've got variable Y that I want to predict from variables X1, X2, etc. What should I do?John K. Kruschkehttp://www.blogger.com/profile/17323153789716653784noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-3240271627873788873.post-16564369123388304812015-02-26T20:49:39.043-05:002015-02-26T20:49:39.043-05:00I do not know, off hand, how MCMCpack is programme...I do not know, off hand, how MCMCpack is programmed. It might be a pre-compiled program that runs fast. And, it might use special-purpose fast algorithms for particular models, as opposed to the general-purpose model parser in JAGS.John K. Kruschkehttps://www.blogger.com/profile/17323153789716653784noreply@blogger.comtag:blogger.com,1999:blog-3240271627873788873.post-76106716996648747822015-02-26T20:42:43.902-05:002015-02-26T20:42:43.902-05:00Hello Professor Kruschke,
Thank you very much for...Hello Professor Kruschke,<br /><br />Thank you very much for your response.<br /><br />So would it mean that R packages such as MCMCpack found in the Bayesian CRAN task view are slower than using RJags ? <br /><br />Thanks,<br />AnujEditorshttps://www.blogger.com/profile/06437261510518895293noreply@blogger.comtag:blogger.com,1999:blog-3240271627873788873.post-23682789688695018592015-02-25T08:44:01.275-05:002015-02-25T08:44:01.275-05:00The interfaces to BUGS and JAGS and Stan are reall...The interfaces to BUGS and JAGS and Stan are really not that ugly. They merely involve some function names, and there would be corresponding function names even if the functions were written directly in R instead of in another language.<br /><br />One good thing about having the MCMC samplers written in a separate language is that they can be accessed from various languages other than R; for example, Matlab.<br /><br />Another reason is that R is slow because it is interpreted instead of compiled. The MCMC samplers can be programmed in other languages (such as C++) and pre-compiled so they run fast. (I'm no expert on this aspect of computing, so I might have some details wrong, but I think the gist is right.)John K. Kruschkehttps://www.blogger.com/profile/17323153789716653784noreply@blogger.comtag:blogger.com,1999:blog-3240271627873788873.post-63528518058153549652015-02-24T23:20:58.650-05:002015-02-24T23:20:58.650-05:00Hello Professor Kruschke,
I was wondering why we ...Hello Professor Kruschke,<br /><br />I was wondering why we dont have generalized packages like BUGS and JAGS that are written in pure R rather than having to interface them through ugly packages. <br /><br />There are stand alone packages that do specific bayesian tasks like Bayesian GLM, but I was wondering what about the type of power that BUGS and JAGS gives us. Cant we have that in R itself ?Editorshttps://www.blogger.com/profile/06437261510518895293noreply@blogger.com