Monthly Archives: September 2009

Psychology Statistics 101 | R or SPSS

September 28, 2009
By
Psychology Statistics 101 | R or SPSS

Dan Wright has placed his Quantitative Methods 1 course online. The course offers instructions both in R and SPSS (PASW).It is an interesting case study in  how to integrate R into a psychology quantitative methods course at the undergraduate leve...

Read more »

How to Import MS Excel Data into R

September 26, 2009
By
How to Import MS Excel Data into R

s Sir Francis Bacon said, “Histories make men wise; poets witty; the mathematics subtile; natural philosophy deep; moral grave; logic and rhetoric able to contend.” And Windows stupid. He should have added the last sentence if he were a Windows user in this age. 1. Avoid Using M$ Excel A lot of R users often ask this question:

Read more »

Formatting a Table in Word | R to Tab-Delimited to APA Style

September 25, 2009
By
Formatting a Table in Word | R to Tab-Delimited to APA Style

The following post sets out my procedure for importing a tab-delimited table of data produced in R  into Microsoft Word and formatting it.Prior to importing table:Run macro which does the followingInsert Caption: References - Insert Capt...

Read more »

Non-parametric Methods

September 24, 2009
By
Non-parametric Methods

A statistical method is called non-parametric if it makes no assumption on the population distribution or sample size. This is in contrast with most parametric methods in elementary statistics that assume the data is quantitative, the population...

Read more »

digest 0.4.0 and 0.4.1

September 24, 2009
By

After almost two years, I just made a small update to the digest package for R by adding sha-256 as another supported hashing function. While at this, a few minor edits where made here or there. Version 0.4.0 also included a file src/Makefile.win but a...

Read more »

digest 0.4.0 and 0.4.1

September 24, 2009
By

After almost two years, I just made a small update to the digest package for R by adding sha-256 as another supported hashing function. While at this, a few minor edits where made here or there. Version 0.4.0 also included a file src/Makefile.win but as that actually prevents a successful build on the Windows platform I promptly removed it for...

Read more »

Example 7.13: Read a file with two lines per observation

September 24, 2009
By
Example 7.13: Read a file with two lines per observation

In example 7.6 we showed how to retrieve the Amazon sales rank of a book. A cron job on one of our machines grabs the sales rank hourly. We’d like to use this data to satisfy our curiosity about when and how often a book sells. A complication is that the result of the cron job is a...

Read more »

R Function of the Day: cut

September 23, 2009
By

This post originally appeared on my Wordpress blog on September 23, 2009. I present it here in its original form. The R Function of the Day series will focus on describing in plain language how certain R functions work, focusing on simple ex...

Read more »

R Function of the Day: cut

September 23, 2009
By

This post originally appeared on my Wordpress blog on September 23, 2009. I present it here in its original form. The R Function of the Day series will focus on describing in plain language how certain R functions work, focusing on simple ex...

Read more »

ggplot2: Back-to-back Bar Charts

September 23, 2009
By
ggplot2: Back-to-back Bar Charts

On the ggplot2 mailing-list the following question was asked: How to create a back-to-back bar chart with ggplot2? For anyone who don’t know what I am talking about, have a look on a recent paper from the EU. I’d like to create plots like the graphs 5,6,18 in the paper. An example graph from the above report is

Read more »