R & Eclipse

R is an absolutely amazing statistical programming system. The more I work with it, the more impressed I become with what it can do. With the packages and tools it provides, I can scrape the web, manage databases, and perform analysis all from one platform. Once you get passed the initial learning curve it saves time and money. However, it sorely lacks a group of solid IDEs. By solid, I mean an IDE that has an object browser and debugging facilities.

Thus, I was initially excited by REvolution Computing’s Visual Studio based IDE, but they make it difficult to try the software and their lag time in returning questions gave me cold feet.

After trying several editors and quasi-IDE’s, I chose eclipse for several reasons:

  • It’s cross-platform and doesn’t install anything on windows.
  • Coupled with the Stat ET plug-in, it has an excellent object browser.
  • I can program C++, PHP, and Python scripts using the same IDE.

Installing Eclipse for the first time can be a time consuming process and I was skeptical that it would be worth it, but now that it’s done, I’m thrilled.

Here a pic of it’s object browser:

Browser 300x153 R & Eclipse

A pic of the entire editor (click to see full fize):

FullEditor 300x203 R & Eclipse

Resources:

For trouble shooting, rjava issue:

http://www.walware.de/it/statet/installation.mframe

For IN-DEPTH tutorial:

http://www.splusbook.com/Rintro/R_Eclipse_StatET.pdf

Gotchas:

On windows, make sure you have your path variables setup properly, else you may have issues. Vista can also be a pain, you may have to give administrator rights to Rcmd to make it run properly or allow users full control.

  • Share/Bookmark

Save my MySQL?

The author of MySQL believes the current acquisition of SUN Microsystems by Oracle is just a ruse to kill off MySQL. For those who are unfamiliar with MySQL, it is one of the open source databases that power most of the web at the moment. IMHO, I agree that Oracle has every incentive to kill off MySQL and their past  behavior with InnoDB suggests this as well. Thus, if you love MySQL check out his post.

via Monty says: Help saving MySQL.

  • Share/Bookmark

How do I get the File Save or File Open dialogs to show details by default?

If you have a lot of files with unique timestamps or other details that you can quickly ascertain in “detail view” than you are probably frustrated with the fact that when opening the file dialog in a program you cannot set the “detail view” to be the default. Instead, each and every time, you need to switch from list view to detail view to find what you are looking for. The trick to have it keep the details view is this:

1) Open the file dialog from any application

2) Switch to “detail view”

3) Press the control button and sort on the name

4) Either open a file or press the exit button.

You may have to restart your computer, but in Vista 64, it held immediately.

via

How do I get the File Save or File Open dialogs to show details by default?.

  • Share/Bookmark

Read the bill? It might not help…

Politico.com just published an article Read the bill? It might not help basically bemoaning the fact that the bills are complicated and arguing that it may not be an efficient use of time for legislators.

We live in the most technologically advanced country in the world and yet our congress (and government) for that matter still doesn’t know how to use readily available technologies!

How about WIKIs or online bills? Not only could these methods allow easy cross-linking within documents and other bills – but more importantly – like I argued here – with wikis you could track who made the changes and subscribe to them too! Imagine thousands of people being able to keep tabs on the latest sausage coming out of congress! If legislators don’t want to do their job, I’m sure there are plenty of Americans that would be happy to do it for them and hold them accountable.

  • Share/Bookmark

Battery Stations Instead of Gas Stations?

I like this idea a lot and I think it has a of lot of potential.

One of the reasons why hydrogen fuel seemed so feasible (on one level at least) is that current investments in gas stations could be retained.

More radical approaches to fueling cars mean that owners of gas stations stand to lose their shirt.

via

Marty Nemko: Battery Stations Instead of Gas Stations?.

  • Share/Bookmark

Automate Excel » Backup Del.icio.us with Excel

A very cool tool to backup your delicious bookmarks. Also useful if you need to generate a list of links.

Automate Excel » Backup Del.icio.us with Excel.

  • Share/Bookmark

OECD/Census Seminar on Turning Statistics into Knowledge

In July the Organization for Economic Co-operation and Development OECD and the U.S. Census Bureau hosted a two day seminar on turning statistics into knowledge.

There are some really nice presentations here, but you have to click on the hyperlinks in the PDF:

http://www.oecd.org/dataoecd/29/15/42667493.pdf

via Kauffman – Presentations Available from OECD/Census Seminar on Turning Statistics into Knowledge.

  • Share/Bookmark

Economic Experiments and the Placebo Effect

Wired Magazine has an interesting article on how the placebo effect has been getting stronger over time. How does this bode for economic experiments – or randomized trials conducted for development projects?

  • Share/Bookmark

Robots, Wordpress, and Permalink Redirects

So I recently changed the permalink structure of my website.

The purpose of this is so that I get prettier looking links

www.vesco.us/?p=203

vs

http://www.vesco.us/2009/03/technology/scanning-textbooks-and-digitizing-your-library-efficiently.html

It also helps people find my pages with google since google likes the latter more.

However, the problem with doing this is that all your old links become obsolete. A wonderful wordpress plugin resolves this, http://scott.yang.id.au/code/permalink-redirect/

However, I noticed after I installed this plugin that my robot.txt file would also redirect back to wordpress causing a “this page cannot be found” to be displayed.

After several hours, I found this solution: place a redirect in your .htaccess file, something like this:

redirect 301 robot.txt http://www.example.com/robot.txt

This has the added benefit of also allowing you to use a real robot.txt file instead of Wordpress’ virtual one that’s managed in from the privacy settings.

  • Share/Bookmark

Field experiments in Economics

Some interesting videos from NBER.

http://www.streamingmeeting.com/webmeeting/matrixvideo/nber/index.html

  • Share/Bookmark