How to Install R 3.0 on a 32-bit Windows 7 System

I spent a few minutes installing R on my computer in anticipation of diving into Data Camp lessons and trying to run the HMDA example from Varian’s work.  Here are the steps that I followed:

  1. Download and Install R – I installed version 3.0.3
  2. Start up R – If you don’t know it’s “Start -> All Programs -> R -> R i386 3.0.3”
  3. Install the party & randomForest package – Inside R select “Packages -> Install package(s)…”  You will need to select a CRAN mirror.  I selected PA(1) because it is the closest to me.
  4. Install the Ecdat package – I had to do this one manually “Packages -> Install package(s) from local zip files…”

I also updated all the packages using “Packages -> Update Packages…”  I had previously downloaded the data.  Again I want to reiterate that making your “source code” available when doing statistical modeling is a wonderful practice.


How to Install Pandas on a Python 3.3 Windows 7 System

I have been watching the Intro to Data Science Udacity course and the instructor uses Pandas. Here are the steps I followed to install it on my system (Note: I explained how I set up Python on my system in this previous post):

  1. Install NumPy – I was unable to install it using easy_install because it couldn’t find the Atlas and Blas libraries on my machine. So I downloaded binary packages from Christoph Gohlke’s U.C. Irvine site instead.  I chose numpy‑MKL‑1.8.1rc1.win32‑py3.3.exe because it matches my setup.
  2. Open a command prompt – I clicked the start button and type “command” in the “Search programs and files” field, and hit enter.  There are other ways to do it.
  3. Install Pandas using easy_install – I typed “C:\Python33\Scripts\easy_install.exe pandas” and it is on my machine.

Now I will be able to put the things I’m learning in the Udacity course into practice.

How to Install the FRED API Python Toolkit on a 32 Bit Windows 7 System

I mentioned in my last post that the St. Louis Fed’s FRED system has an API and there is a Python wrapper. I just installed it on our 32-bit Windows 7 computer and here are the steps I followed:

  1. Download and Install Python – I am running the 3.3 version of Python.
  2. Download and Install Setup Tools – I chose setuptools‑2.2.win32‑py3.3.exe since it matches my system.
  3. Opened a command prompt – There are lots of ways to do this.  I click the start button and type “command” in the “Search programs and files” field, and hit enter.
  4. Installed FRED using easy_install – I typed “C:\Python33\Scripts\easy_install.exe fred” and voilà!  The Python FRED Toolkit (or wrapper) is on my machine.

You will need an API key to access the service.  I have only been successful getting XML responses with the wrapper.    Based on my research it looks like it is a Python 3 issue.