Brian Ripley – The R Development Process (useR! 2011)

August 16, 2011
By
Brian Ripley – The R Development Process (useR! 2011)

There are my notes on the User2011 invited talk. Brian Ripley has been a member of R core since 1998 The R Development Process – A insideR’s view R Timeline: JCGS paper submitted in 1995. 1997: CRAN(Mar), Core team(Aug), CVS (Sept) R 1.0.0 Feb 2000 – 2.8MB. Many people don’t take 0.X.X seriously R 2.0.0 Oct

Read more »

Rchievement of the day

August 16, 2011
By
Rchievement of the day

Today ‘rjags’ was annoying me. The function ‘update.jags’ was (without asking me) disabling the progress bar when I was running R non-interactively. It was annoying, as I was sending R output to a log file in my dropbox, and having … Continue reading →

Read more »

The fun Package: Use R for Fun!

August 16, 2011
By
The fun Package: Use R for Fun!

A couple of days ago we released a package named fun to CRAN, but I did not dare to send an announcement to [email protected] as usual. This package is a collection of some classical computer games (e.g. the Mine sweeper and Five in a row) as we...

Read more »

Use geom_rect() to add recession bars to your time series plots #rstats #ggplot

August 15, 2011
By
Use geom_rect() to add recession bars to your time series plots #rstats #ggplot

ggplot2's geom_rect() layer makes it easy to highlight portions of your graph, such as recessions on an economic time series.

Read more »

lm System on Nikkei with New Chart

August 15, 2011
By
lm System on Nikkei with New Chart

I got a great idea from the zoo-overplot demo to make a very helpful visualization of system entry and exit.  Since the lm-based system presented in Unrequited lm Love is newest, I will use this system, but apply to the Nikkei 225 instead of the R...

Read more »

MySQL and R

August 15, 2011
By

Using MySQL with R is pretty easy, with RMySQL. Here are a few notes to keep me straight on a few things I always get snagged on. Typically, most folks are going to want to analyze data that's already in a MySQL database. Being a little bass-ackwards, I often want to go the other way. One reason to do...

Read more »

Paul Murrell – Introduction to Grid graphics (useR! 2011)

August 15, 2011
By
Paul Murrell – Introduction to Grid graphics (useR! 2011)

Typically, I’m very bad at taking notes in conference. This time around, I intend to make notes for each some of the talks I attend at this year’s useR! 2011 conference. Below are my notes that I made during this afternoon’s tutorial. Note: these are just notes I made and aren’t meant to be a

Read more »

How many NYC restaurants get As on their health inspections?

August 15, 2011
By
How many NYC restaurants get As on their health inspections?

Decision Science News is no stranger to misleading infographics in free New York newspapers. We could stop reading them entirely, but we find that playing "spot the infographic flaw" makes time fly on the subway. Recently we saw the above graphic in a paper called Metro. Can you spot the goof?

Read more »

Sync Your Rprofile Across Multiple R Installations

August 15, 2011
By
Sync Your Rprofile Across Multiple R Installations

Your Rprofile is a script that R executes every time you launch an R session. You can use it to automatically load packages, set your working directory, set options, define useful functions, and set up database connections, and run any other code you w...

Read more »

Using Emacs as a front-end for R

August 15, 2011
By

Back when I was a grad student, I was a devoted Emacs user. I basically used it like an operating system: it wasn't just my text editor, but also my mail reader, my Web browser, my news reader, and so much more. (I once even asked our sysadmin to change my default shell to /usr/bin/emacs. He refused.) So when...

Read more »

Live from useR!

August 15, 2011
By

The Revolution Analytics team is at the R user conference useR! at Warwick University this week. We'll bring you the updates from the conference with the latest from the R community as we go, but as we're on UK time blogging will be at unusual hours for the next few days. Things are off to a great start, with...

Read more »

Making Stuff is Scary

August 15, 2011
By
Making Stuff is Scary

My daughter's best friend lives just down the street. Her mother runs a cupcake shop that's just a little further down the street. Being eleven going on sixteen, my daughter fancies herself a "quote" -- worker at the shop. She's not paid in actual mone...

Read more »

Unrequited lm Love

August 14, 2011
By
Unrequited lm Love

In System Failure-Maybe it Will Help I presented the initial trials of a linear model system for stocks, and even though they were not a resounding success, I have been strangely determined to discover a working version of this framework.  Maybe t...

Read more »

Breaking it up into trend and seasonal and error components

August 14, 2011
By
Breaking it up into trend and seasonal and error components

 GDP=scan("/Users/stevensabol/Desktop/R/gdp.csv")Read 258 items> GDP=ts(GDP,start=1,frequency=4)> dlGDP=diff(log(GDP))> plot(stl(log(GDP),"per"))This allows us to do a structural decompositionlog(GDP) = trend + season + error Here is...

Read more »

Get those plots

August 14, 2011
By
Get those plots

Type in the following to get a Q-Q plot and a histogram on top of each otherpar(mfrow=c(2,1))> hist(dlGDP,prob=T,12)> lines(density(dlGDP))> qqnorm(dlGDP)> qqline(dlGDP)the top graph says that the errors are pretty nicely distributed around...

Read more »

Playing In R: Getting Down to Business

August 14, 2011
By
Playing In R: Getting Down to Business

okay so now we are up and plotting. Let's dive into some analysis.First we want to see if we can use the series so we have to see if its covariance stationary and that means that its mean is constant and also we can't be able to predict the e...

Read more »

Playing Around With R

August 14, 2011
By
Playing Around With R

okay so today we will start playing around with R and will use GDP as our ginny pig.okay so first do the following:1. DOWNLOAD R2. Create a folder and call it "R" on your desktop.  Then type ingetwd()this will produce the current place where R fin...

Read more »

The Dancing Economist’s content will be statistically enhanced.

August 13, 2011
By
The Dancing Economist’s content will be statistically enhanced.

Recently, I have been fed up. Why? because I wanted to produce professional forecasts on my blog but don't have SAS. I wanted to forecast with some AR, ARMA and ARIMA models, but couldn't. Completely heartbroken. I got to thinking-  R co...

Read more »

the batman equation

August 13, 2011
By
the batman equation

HardOCP has an image with an equation which apparently draws the Batman logo. Read More: 1295 Words Totally

Read more »

GDAT 2011 in Review

August 13, 2011
By
GDAT 2011 in Review

As usual, the Guerrilla Data Analysis Techniques (GDAT) class was a total blast. Motivated students always guarantee that. It would really help our scheduling, however, if people didn't wait until the last nanosecond to register for the class. But give...

Read more »

QTL Analysis in R

August 13, 2011
By
QTL Analysis in R

See also: Part 1: QTL Analysis and Quantitative Genetics  Part 2: Statistical Methods for QTL Analysis The 'qtl' package in R allows you to implement QTL analysis using the methods I've previously discussed. The code below is adapted from Broman...

Read more »

R Program Documentation Template

August 13, 2011
By
R Program Documentation Template

# ------------------------------------------------------------------ # |PROGRAM NAME: # |DATE: # |CREATED BY: MATT BOGARD # |PROJECT FILE: # |---------------------------------------------------------------- # | PURPOSE: ...

Read more »

Stop! (In the name of a sensible interface)

August 12, 2011
By
Stop! (In the name of a sensible interface)

In my last post I talked about using the number of lines in a function as a guide to whether you need to break it down into smaller pieces. There are many other useful metrics for the complexity of a function, most notably cyclomatic complexity, which tracks the number of different routes that code can

Read more »

Create an animated clock in R with ggplot2 (and ffmpeg)

August 12, 2011
By

Because it’s Friday—and I needed to create this for a separate visualization—here is how to create an animated clock in R using ggplot2. In just about 20 lines of code! And here is the clock… I think this is a nifty way to show time elapse, rather than the windowed timelines I had used previously.

Read more »

Revolution Newsletter: August 2011

August 12, 2011
By

The most recent edition of the Revolution Newsletter is out. The news section is below, and you read the full August edition (with highlights from this blog and community events) online. You can subscribe to the Revolution Newsletter to get it monthly via email. Free 30-minute introduction to Revolution R Enterprise. On Wednesday August 24, author and blogger David...

Read more »

Getters and setters in R

August 12, 2011
By

Tweet When I first started using R, one of the things that attracted me was its claim to be an object-oriented programming (OOP) language. Coming from a Java background, I was used to designing software with OOP concepts like encapsulation and inheritance but, when I turned my hand to R, I quickly...

Read more »

CrossValidated blog is on R-bloggers.com from now on

August 12, 2011
By

Some may have already noticed that the last post appeared on the R-bloggers.com, but here now is the official announcement. R-bloggers.com aggregates blogs which write about R. Since questions about R constitute roughly 20% of all the questions on CrossValidated, it is natural that the community blog of CrossValidated writes about R too. We have

Read more »

Monster functions (Raaargh!)

August 12, 2011
By
Monster functions (Raaargh!)

It’s widely considered good programming practice to have lots of little functions rather than a few big functions. The reasons behind this are simple. When your program breaks, it’s much nicer to debug a five line function than a five hundred line function. Additionally, by breaking up your code into little chunks, you often find

Read more »

Musings on Correlation (or yet another reason I fear for those non-methodologically inclined students in my cohort)

August 12, 2011
By
Musings on Correlation (or yet another reason I fear for those non-methodologically inclined students in my cohort)

I’ve been thinking a lot about what it means for two variables to be correlated.  Scientists throw around the term like it’s uniformly understood, but I fear that an understanding of the concept is elusive to substantive researchers who aren’t interested in empirical methods, except as a means by which we can demonstrate that our

Read more »