R Object Tooltips in ESS

October 1, 2009
By
R Object Tooltips in ESS

Whether at work or for personal projects, I use ESS a lot to perform interactive data analyses. The ability to write, edit, and submit R commands to an interactive R process is simply something I cannot imagine analyzing data without. An example One thing that I end up having to do a lot is inspect

Read more »

R: The Dummies Package

September 30, 2009
By

R-2.9.2 was released in August. While R can be considered stable and battle-ready, it is also far from stagnation. It is humbling to see such an intelligent and vibrant community helping CRAN grow faster than ever. Every day I see a new package or read a new comment on R-Help

Read more »

Measuring performance of functions in R

Measuring performance of functions in R

In R you can use the system.time(function) function to test the time it takes to execute a function. Because I had to do some extended performance testing in R, I wrote a new function based on system.time which gives you the possibility to run multiple...

Read more »

Example 7.14: A simple graphic of sales

September 29, 2009
By
Example 7.14: A simple graphic of sales

In this example, we show a simple plot of the sales rank data read in as shown in example 7.13.SASIn SAS, we use the symbol statement (section 5.3) to request small (with the h option) dots (with the v option, and that the dots not be connected (with the i option. (See sections 5.2.2, 5.3.9 for more details.)we...

Read more »

RInside release 0.1.1, and a fresh example

September 29, 2009
By

Last week's 0.1.0 release of RInside, and the first to have been published on CRAN, still had some issues with builds and use on OS X. Thanks to testing and fixes by Jan de Leeuw, Jeff Horner and particularly Simon Urbanked, things are said to be better now with the new release 0.1.1 which went onto CRAN yesterday. So no new features,...

Read more »

RInside release 0.1.1, and a fresh example

September 29, 2009
By

Last week's 0.1.0 release of RInside, and the first to have been published on CRAN, still had some issues with builds and use on OS X. Thanks to testing and fixes by Jan de Leeuw, Jeff Horner and particularly Simon Urbanked, things are said to be bette...

Read more »

RInside release 0.1.1, and a fresh example

September 29, 2009
By

Last week's 0.1.0 release of RInside, and the first to have been published on CRAN, still had some issues with builds and use on OS X. Thanks to testing and fixes by Jan de Leeuw, Jeff Horner and particularly Simon Urbanked, things are said to be better now with the new release 0.1.1 which went onto CRAN yesterday. So no new features,...

Read more »

WordPress Blogging with R in 3 Steps

September 29, 2009
By
WordPress Blogging with R in 3 Steps

A few people have emailed me and enquired about the use of tools mentioned at the end of this post to make blogposts with embedded R-commands. Below is a small step-by-step walkthrough of how to accomplish this. Write your blog post in a simple text file, you can include formatting using asciidoc syntax. Let’s

Read more »

WordPress Blogging with R in 3 Steps

September 29, 2009
By
WordPress Blogging with R in 3 Steps

A few people have emailed me and enquired about the use of tools mentioned at the end of this post to make blogposts with embedded R-commands. Below is a small step-by-step walkthrough of how to accomplish this. Write your blog post in a simple tex...

Read more »

Survive R

September 29, 2009
By

New PDF slides version (presented at the Bay Area R Users Meetup October 13, 2009). We at Win-Vector LLC appear to like R a bit more than some of our, perhaps wiser, colleagues ( see: Choose your weapon: Matlab, R or something else? and R and data ). While we do like R (see: Exciting Related posts:

Read more »

Blogs on R | Statistics

September 28, 2009
By
Blogs on R | Statistics

What are the current blogs on R? What do they cover?What makes a good blog on R?Of course different readers look for different things, but for me a good blog on R:Provides a Gateway: The blog discovers and shares useful external material and expla...

Read more »

Adjusting Correlations for Reliability | Attenuation Formula

September 28, 2009
By
Adjusting Correlations for Reliability | Attenuation Formula

This post discusses ways of adjusting correlations for reliability.Classical Test Theory states that an Observed variable is True Score plus Error. The true score variable is latent. In psychology theoretical interest typically relates more to the late...

Read more »

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 b...

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 b...

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 »

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 graph...

Read more »

Solar Trends: Total Solar Irradiance Since 1611 – Update

September 23, 2009
By
Solar Trends: Total Solar Irradiance Since 1611 – Update

This is the 2nd in a series of  posts I will be doing on solar trends. In this post, I show how to retrieve online daily satellite and reconstructed TSI data,   plot the daily data as well as annual and 11 year moving average smooths for the data series.  Links to

Read more »

High yield spread

September 23, 2009
By
High yield spread

Last week I had opportunity to participate at NYU, where one of the lecturers was Z-score man’s. He spent same time talking about the high yield spread as measure of the macro economy. Then spread is high (junk bonds become very cheap and Treasuries become ‘gold’) -  crisis is right here. Intuitively, it is similar

Read more »

R Sessions 33: Select (nested) observations with equal number of occurences

September 23, 2009
By

Recently, I was contacted with an question about R code. A befriended researcher was working with nested data, which was unbalanced. He was working with data in a ‘long’ format: all observations nested within the same group had the same ...

Read more »

RGG #158:161: examples of package IDPmisc

September 23, 2009
By
RGG #158:161: examples of package IDPmisc

three new graphs have made their way to the graph gallery, submitted by Reto Burgin Image lag plot matrix Image scatter plot matrix Regular time series

Read more »

R Function of the Day: rle

September 22, 2009
By

Edit: This post originally appeared on my Wordpress blog on September 22, 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 sim...

Read more »