bayesglm in Matlab?

I received the following email:

I have just read your paper “A default prior distribution for logistic and other regression models”.
It looks very interesting and useful for general bayesian models. . . . However, as an engineer, I know nothing about R and use MATLAB for everything! I don’t suppose you have the algorithm available in MATLAB code?

Any thoughts? I don’t think it should be too hard to translate from R to Matlab; unfortunately bayesglm() is a hack on glm() which is full of irrelevant code (exception-handling, etc). It would be easier to program from scratch in Matlab, I think.

3 thoughts on “bayesglm in Matlab?

  1. Learn R?

    Seriously, it shouldn't be too hard if you already know MATLAB. Especially if all you want to do is read in data from a csv file, run bayesglm, and output the results to another csv file.

  2. Learning R is probably the best solution, but I don't by into "learning R is easy once you know matlab". Before R was around I used matlab a lot, and it took me exactly 5 min to learn matlab! I know of nobody who learnt R in 5 min. R is a (sometimes unreasonably complicated) functional language, matlab is simply a simplified and improved pascal. matlab is fast to learn because there is hardly anything to learn at all. You dont need to learn OO programming, it isn't there. Nothing to learn, on the other hand: no help to get!!

Comments are closed.