July 2009

Job grade plot

July 15, 2009 | 0 Comments

This plot:was created using the following R code:plot (q9e~q8, type = "n",xlim = c(1,13), ylim = c(1,13),cex.lab=1.25,cex.axis=0.75, col.lab = "#333333", xlab = "Obama job grade",ylab = "Congressional job grade", xaxt ="n", yaxt="n",main="Obama and Co... [Read more...]

Example 7.5: Replicating a prettier jittered scatterplot

July 15, 2009 | 0 Comments

The scatterplot in section 7.4 is a plot we could use repeatedly. We demonstrate how to create a macro (SAS, section A.8) and a function (R, section B.5) to do it more easily.SAS%macro logiplot(x=x, y=y, data=, jitterwidth=.05, smooth=50);data lp1;set...
[Read more...]

Building R packages for Windows

July 13, 2009 | 0 Comments

1. Installing the required tools To build an R package in Windows, you will need to install some additional software tools. These are summarized at http://www.murdoch-sutherland.com/Rtools 1.1 Essential: Rtools This is a collection of unix-like tools... [Read more...]

A recommended book

July 13, 2009 | 0 Comments

I've been getting a lot of help from this book:While written for S-Plus, nearly everything in it is applicable with R. [Read more...]

Some detail on the last plot

July 13, 2009 | 0 Comments

First we plot approval (app) against date (daten). We also specify a few other things. ylim=c(40,80) specifies that the y axis extends from 40 to 80. xlim=c(-3,210) might seem odd, but we need extra space on the left. pch=16 plots dots, and col="gray" ... [Read more...]

Obama approval

July 12, 2009 | 0 Comments

Working some more with time series data. Here we have a graph of Obama job approval numbers, with two LOWESS-fit lines added for trending: Figure1. President Obama job approval, Jan 2009 - present.There's actually some pretty fancy stuff going on there, as the following code shows.polls lfit1 lfit2 plot (... [Read more...]

useR 2009 in Rennes: Recap and slides

July 12, 2009 | 0 Comments

I spent most of last week in Rennes, the capital of Brittany in France, as it was time for UseR! 2009, the annual R conference. Francois Husson, Aline Legrand and others at the Agrocampus Ouest had put together a really well-run conference, and it w... [Read more...]

Causal inference and biostatistics

July 11, 2009 | 0 Comments

I've been following the discussion on causal inference over at Gelman's blog with quite a bit of interest. Of course, this is in response to Judea Pearl's latest book on causal inference, which differs quite a bit from the theory that had been forwarde... [Read more...]

The Knapsack Problem

July 10, 2009 | 0 Comments

David posts a question about how to solve this knapsack problem using the R statistical computing and analysis platform. My reply in the comments seems to have disappeared for a while so here is my proposed solution: [Read more...]

Sometimes, you just need to use a plyr

July 10, 2009 | 0 Comments

I haven’t posted anything about R-nerdery in quite some time. But I have to pause for a moment, and sing the praises of a relatively new package that has made my life exponentially easier. The plyr package. R has the capability to apply a single function to a vector ...
[Read more...]

Presenting influence.ME at useR!

July 10, 2009 | 0 Comments

Today I presented influence.ME at the useR! conference in Rennes. Influence.ME is an R package for detecting influential data in mixed models. I developed this package together with Ben Pelzer and Manfred te Grotenhuis. More information about influence.ME can be ... [Read more...]

Useful Links

July 9, 2009 | 0 Comments

Statistic on WikiPediaR homepageR download (first select the mirror)Blogs on R:Revolutions R BlogR bloggersPlanet RQuick-ROne R tip a dayData Mining With Rattle and RAniWikiR Graph GalleryR Tips / StatsRusRomain Francois blog"R" you ready?Learning RTai...
[Read more...]

useR! slides

July 8, 2009 | 0 Comments

I've pushed my slides from the presentation I've given at useR! a few minutes ago here [Read more...]

RGG# 154: demo of atomic functions

July 7, 2009 | 0 Comments

Przemyslaw Biecek has submitted this graph (and also others I will add later) to the graphics gallery A list of examples for the atomic functions polygon(), segments(), symbols(), arrows(), curve(), abline(), points(), lines(). this figure is t...
[Read more...]

Return

July 6, 2009 | 0 Comments

I'm back from vacation, so I'll post something substantive later today. [Read more...]

Using R to Create Misc. Patterns [smocking]

July 4, 2009 | 0 Comments

Pattern Chunk   Premise My wife asked me to come up with some graph paper for creating smocking patterns. After a couple of minutes playing around with R-base graphics functions, it occurred to me that several functions in the sp package would simplify grid-based operations. Some example functions, along with a ...
[Read more...]

Summarizing Grouped Data in R

July 3, 2009 | 0 Comments

A colleague of mine recently asked about computing basic summary statistics from grouped data in R. These are a couple examples that I suggested. Additional documentation for the plyr package can be found here. read more [Read more...]
1 2 3 4

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)