tag:blogger.com,1999:blog-8909074830238091680.post4183686649943021469..comments2017-03-27T11:54:12.023+11:00Comments on Jeromy Anglim's Blog: Psychology and Statistics: R versus Matlab in Mathematical PsychologyJeromy Anglimnoreply@blogger.comBlogger6125tag:blogger.com,1999:blog-8909074830238091680.post-40363326397528160602011-02-24T13:16:51.443+11:002011-02-24T13:16:51.443+11:00Hi Bob,
Thanks for the useful ideas.
I haven't...Hi Bob,<br />Thanks for the useful ideas.<br />I haven't dived into Matlab much.<br />I've had a quick look at Octave. <br />Its great to see an open source alternative.Jeromy Anglimhttp://www.blogger.com/profile/12949204812496382042noreply@blogger.comtag:blogger.com,1999:blog-8909074830238091680.post-11341814766548380542011-02-24T00:32:55.914+11:002011-02-24T00:32:55.914+11:00Hi Jeromy,
Thanks for that interesting comparison...Hi Jeromy,<br /><br />Thanks for that interesting comparison. I don't use MATLAB that much but I have great respect for it. While I was initially confused by several aspects of R's syntax, MATLAB's seemed very easy and natural from the start. However the mass of packages (recently exceeding 4,000) keeps me in R. <br /><br />Have you heard much about Scilab or Octave? They're open source and with syntax similar to MATLAB's. A company named Equalis now offers support for Scilab as Revolution Analytics does for R. That made me think it must be fairly widely used.<br /><br />It's interesting that Tal reports such a big difference between R and MATLAB regarding the size of data they handle. They're both limited to holding data in RAM aren't they? (i.e. without resorting to special tricks.)<br /><br />Cheers,<br />Bob Muenchen<br />http://www.r4stats.comBob Muenchenhttp://www.blogger.com/profile/14224906531398701275noreply@blogger.comtag:blogger.com,1999:blog-8909074830238091680.post-29268380066465780162011-02-22T11:52:18.444+11:002011-02-22T11:52:18.444+11:00@Anonymous
Yes, R has a lot of support for quantit...@Anonymous<br />Yes, R has a lot of support for quantitative psychology, and it's getting better all the time.<br /><br />* Psychometrics Task View: http://cran.r-project.org/web/views/Psychometrics.html<br />* Social Science Task View: http://cran.r-project.org/web/views/SocialSciences.html<br /><br />And of course, a lot of every day analyses of psychological datasets can be done with Base R packages.<br /><br /><br />However, for example, I don't think there is equivalent packages for estimating parameters of various computational models. For example, I don't know if there is something like DMAT http://ppw.kuleuven.be/okp/software/dmat/ for R.<br />You could write such a package yourself, but that's a whole other level.Jeromy Anglimhttp://www.blogger.com/profile/12949204812496382042noreply@blogger.comtag:blogger.com,1999:blog-8909074830238091680.post-30513470911655256222011-02-22T11:39:35.499+11:002011-02-22T11:39:35.499+11:00Hi Tal,
Thanks for sharing your first hand experie...Hi Tal,<br />Thanks for sharing your first hand experience.<br />My knowledge of Matlab is pretty fuzzy.<br />So far my data analysis needs haven't required any specialist toolboxes in Matlab (e.g., http://psychtoolbox.org).<br />And I suppose if I truly wanted to stay open source, there's always Octave.<br /><br />And yes, I'll be have to check out NumPy/SciPy at some point.Jeromy Anglimhttp://www.blogger.com/profile/12949204812496382042noreply@blogger.comtag:blogger.com,1999:blog-8909074830238091680.post-45919229324349962052011-02-22T07:34:22.386+11:002011-02-22T07:34:22.386+11:00Doesn't R have pretty signifcant quantitative ...Doesn't R have pretty signifcant quantitative psychology support? The package "psych" comes to mind.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8909074830238091680.post-24607148060431160452011-02-22T04:27:03.992+11:002011-02-22T04:27:03.992+11:00I frequently use both R and Matlab, and have a str...I frequently use both R and Matlab, and have a strong preference for R. The main sticking point is that--other than having packages for just about everything, which you mentioned--R seems to have much better support for everything <em>other</em> than actual numerical computation. E.g., reading in data can be a nightmare in Matlab, whereas read.table() rarely fails me. And similarly for string operations, data type conversion, etc. Not to say you can't manipulate strings or data types in Matlab, just that it always seems to require more work. R is just a better <em>language</em>.<br /><br />That said, there are also things that drive me crazy about R, and force me back to Matlab at times. The biggest one is slowness; R just chokes on very large datasets. I know there are ways around this, but out of the box, R can't handle datasets in the gigabytes, whereas Matlab just chugs along. And I much prefer Matlab's style of indexing arrays; R doesn't have nearly as good support for logical indexing. But that's kind of offset by the fact that you can't nest calls very well in Matlab.<br /><br />Bottom line, I use R for everything I can, but t least for what I do, Matlab is sometimes necessary. I do think that in the long run, there's a good chance NumPy/SciPy will end up being a better solution than either, because coding in Python is just a much better all-around experience. But I'm not planning to switch over until there's much better stats and plotting support.talhttp://talyarkoni.org/blognoreply@blogger.com