Blog Archives

Dates in R and the First Day of the Month

April 23, 2011
By
Dates in R and the First Day of the Month

I spent some time this morning learning about how R thinks about dates in R. I found this website to be a useful guide.Imagine that your data are dates in a standard format and you want a vector o...

Read more »

Good Looking Maps in R

April 21, 2011
By
Good Looking Maps in R

I haven't yet tried this, but it looks like a nice package.In one recent project I needed to draw several maps and visualize different kinds of geographical data on it. I found the combination of R/ggplot/maps package extremely flexible and powerful,...

Read more »

Good Looking Maps in R

April 21, 2011
By
Good Looking Maps in R

I haven't yet tried this, but it looks like a nice package.In one recent project I needed to draw several maps and visualize different kinds of geographical data on it. I found the combination of R/ggplot/maps package extremely flexible and powerful,...

Read more »

Common Data Creation Commands

April 19, 2011
By
Common Data Creation Commands

Here is a video tutorial where I go through some of the most commonly used commands in creating and manipulating data. As soon as I want to do more than just running a single regression, I use these commands more than any other set of commands (in som...

Read more »

Common Data Creation Commands

April 19, 2011
By
Common Data Creation Commands

Here is a video tutorial where I go through some of the most commonly used commands in creating and manipulating data. As soon as I want to do more than just running a single regression, I use these commands more than any other set of commands (in som...

Read more »

A Population Regression

April 18, 2011
By
A Population Regression

Here's a video on some of the theory behind simple linear regression.There's no R involved with this video, but the video provides some theory behind what it is that R's lm() command estimates.

Read more »

A Population Regression

April 18, 2011
By
A Population Regression

Here's a video on some of the theory behind simple linear regression.There's no R involved with this video, but the video provides some theory behind what it is that R's lm() command estimates.

Read more »

A Creative Use of R

April 17, 2011
By
A Creative Use of R

Update (5/18/2011): Looks like Freakonomics approves as well. Let the record show that I approved first :)I approve: "I use the open-source program R to create the patterns."But, I'm not sure I approve of calling these distributions "evil."In case you...

Read more »

A Creative Use of R

April 17, 2011
By
A Creative Use of R

Update (5/18/2011): Looks like Freakonomics approves as well. Let the record show that I approved first :)I approve: "I use the open-source program R to create the patterns."But, I'm not sure I approve of calling these distributions "evil."In case you...

Read more »

Computing Statistical Power

April 14, 2011
By
Computing Statistical Power

Today's task is to compute a statistical power function in R. For a good definition of power, go here. Thinking about the power of a testing procedure is an often-overlooked aspect of hypothesis testing.I also explain what power (in a statistical sens...

Read more »