Halloween 2011 count

October 31, 2011
By
Halloween 2011 count

We don’t get many kids seeking candy at our house. I’m not sure if there just aren’t many kids in the neighborhood, or if it’s our location (next to the pond, with a big gap before the next house). I decided to keep track. As usual, we bought a huge bag of candy, and we

Read more »

Japan Quake Map

October 31, 2011
By
Japan Quake Map

Japan Quake Map with R, ggplot2, and FFmpeg   1 Introduction As a follow-up to ‘Analysis of Japanes

Read more »

Covered Call ETF Performance

October 31, 2011
By
Covered Call ETF Performance

Covered call ETFs have become quite popular lately. Living in Canada, I have been holding a couple Canadian members of this family for the last few months. When I purchased them, I liked the benefits and since I wasn’t expecting any bull markets on the horizon, I bought some. These were new products back them,

Read more »

Putting the R in Hallowe’en

October 31, 2011
By
Putting the R in Hallowe’en

PhD student Caroline Tucker created a Hallowe'en card using the R graphics system: You can find the R code to create the above image here. Note that you'll need to install the fields and MBA packages first. One interesting aspect of the code is the use of the mba.surf function to create the shading that gives the Jack-o'-lantern its...

Read more »

Using Sparse Matrices in R

October 31, 2011
By
Using Sparse Matrices in R

Introduction I’ve recently been working with a couple of large, extremely sparse data sets in R. This has pushed me to spend some time trying to master the CRAN packages that support sparse matrices. This post describes three of them: the Matrix, slam and glmnet packages. The first two packages provide data storage classes for

Read more »

R 2.14.0 Released

October 31, 2011
By

A Halloween treat for R users! Version 2.14.0 was released today. Among other things there are big improvements for parallel processing. For a quick synopsis of the new "goodies", see the post on the Revolutions blog.© 2011, David E. Giles

Read more »

Plotting grouped data vs time with error bars in R

October 31, 2011
By
Plotting grouped data vs time with error bars in R

This is my first blog since joining R-bloggers. I’m quite excited to be part of this group and apologize if I bore any experienced R users with my basic blogs for learning R or offend programmers with my inefficient, sloppy … Continue reading →

Read more »

Plotting grouped data vs time with error bars in R

October 31, 2011
By
Plotting grouped data vs time with error bars in R

This is my first blog since joiningR-bloggers. I’m quite excited to be part of this group and apologize if I boreany experienced R users with my basic blogs for learning R or offendprogrammers with my inefficient, sloppy coding. Hopefully writing for...

Read more »

useR! 2011 – Jonathan Rougier: Nomograms for visualising relationships between three variables

October 31, 2011
By
useR! 2011 – Jonathan Rougier: Nomograms for visualising relationships between three variables

useR2011 – Rougier View more presentations from rusersla

Read more »

useR! 2011 – Wolfgang Huber: Genomes and phenotypes

October 31, 2011
By
useR! 2011 – Wolfgang Huber: Genomes and phenotypes

useR2011 – Huber View more presentations from rusersla

Read more »

Making R’s paste act more like CONCAT

October 31, 2011
By

While vector-friendly, R's paste function has a few behaviors I don't particularly like. One is using a space as the default separator:> adjectives> paste(adjectives,"er")> paste(adjectives,"er") "lean er" "fast er" "strong er" #d'oh> paste(adjectives,"er",sep="") "leaner" "faster" "stronger"Empty vectors get an undeserved first class treatment: > paste(indelPositions,"i",sep="") "i"> indelPositions> paste(indelPositions,"i",sep="") "5i"...

Read more »

useR! 2011 – Brandon Whitcher: Quantitative Medical Image Analysis

October 31, 2011
By
useR! 2011 – Brandon Whitcher: Quantitative Medical Image Analysis

useR2011 – Whitcher View more presentations from rusersla

Read more »

R 2.14.0 is released

October 31, 2011
By

As scheduled, the first release of the new R 2.14 series is now available for download in source code form. As of this writing, pre-compiled binaries for Windows, Linux and MacOS aren't yet available, but will appear on your local CRAN mirror in the next couple of days. One of the biggest changes in 2.14 is the introduction of...

Read more »

useR! 2011 – Lee E. Edlefsen: Scalable Data Analysis in R

October 31, 2011
By
useR! 2011 – Lee E. Edlefsen: Scalable Data Analysis in R

useR2011 – Edlefsen View more presentations from rusersla

Read more »

useR! 2011 – Ulrike Grömping: Design of Experiments

October 31, 2011
By
useR! 2011 – Ulrike Grömping: Design of Experiments

useR2011 – Gromping View more presentations from rusersla

Read more »

Simulation: Efficiency of mean with median Goal: Show the…

October 31, 2011
By
Simulation: Efficiency of mean with median

Goal: Show the…

Simulation: Efficiency of mean with median Goal: Show the efficiency of the mean when compared with the median using a large simulation where both estimators are applied on a sample of U(0,1) uniformly distributed random numbers. Input: # Goal: Show...

Read more »

Last chance to enter the $20,000 "Applications of R" contest

October 31, 2011
By

Don't forget that midnight tonight (Pacific Daylight Time) is the deadline to submit your draft entry for the Applications of R in Business Contest, with $20,000 in prizes up for grabs from Revolution Analytics. You'll still be able to edit your entry during the public review period (until November 30), but no new entries will be accepted for the...

Read more »

Multivariate linear mixed models: livin’ la vida loca

October 31, 2011
By
Multivariate linear mixed models: livin’ la vida loca

I swear there was a point in writing an introduction to covariance structures: now we can start joining all sort of analyses using very similar notation. In a previous post I described simple (even simplistic) models for a single response … Continue reading →

Read more »

Example 9.12: simpler ways to carry out permutation tests

October 31, 2011
By
Example 9.12: simpler ways to carry out permutation tests

In a previous entry, as well as section 2.4.3 of the book, we describe how to carry out a 2 group permutation test in SAS as well as with the coin package in R. We demonstrate with comparing the ages of the female and male subjects in the HELP study.I...

Read more »

R 2.14.0 is released!

October 31, 2011
By
R 2.14.0 is released!

The new R 2.14.0 is out! Get the source code from here. Take a look at these posts for some miscellaneous advices to make the upgrade easier. Also this thread on stackoverflow and this post contributed by Tal Galili&nbs...

Read more »

Batman Equation Happy Halloween! Plot the Batman logo in…

October 31, 2011
By
Batman Equation

Happy Halloween! Plot the Batman logo in…

Batman Equation Happy Halloween! Plot the Batman logo in CloudStat with the legendary Batman Equation.

Read more »

Power Tools for Aspiring Data Journalists: R

October 31, 2011
By
Power Tools for Aspiring Data Journalists: R

Picking up on Paul Bradshaw’s post A quick exercise for aspiring data journalists which hints at how you can use Google Spreadsheets to grab – and explore – a mortality dataset highlighted by Ben Goldacre in DIY statistical analysis: experience the thrill of touching real data, I thought I’d describe a quick way of analysing

Read more »

Testing for…

October 31, 2011
By
Testing for…

Input Output Testing for regression Input: advertising=c(1,2,3,4,5) sales=c(1,1,2,2,4) sales.Reg=lm(sales~advertising) summary(sales.Reg) Output: > advertising=c(1,2,3,4,5) > sales=c(1,1,2,2,4) > > sales.Reg=lm(sales~advertising) > summary...

Read more »

Risk parity

October 31, 2011
By
Risk parity

Some thoughts and resources regarding a popular fund management buzzword. The idea Given asset categories (like stocks, bonds and commodities) create a portfolio where each category contributes equally to the portfolio variance. Two operations There are two cases in creating a risk parity portfolio: the universe is the asset categories the universe is the assets … Continue reading...

Read more »

Sampling for Monte Carlo simulations with R

October 31, 2011
By
Sampling for Monte Carlo simulations with R

I've knocked together a quick function for generating efficient Monte Carlo samples. It takes a bit of the legwork out of running Monte Carlo simulations.

Read more »

Using IUCN-Data, ArcMap 9.3 and R to Map Species Diversity

October 31, 2011
By
Using IUCN-Data, ArcMap 9.3 and R to Map Species Diversity

..I'm overwhelmed by the ever-growing loads of data that's made available via the web. I.e., IUCN collects and hosts spatial species data which is free for download. I'm itching to play with all this data... And, in the end there may arise ...

Read more »

Reading Excel data is easy with JGR and XLConnect

October 30, 2011
By

Despite the fact that Excel is the most widespread application for data manipulation and (perhaps) analysis, R's support for the xls and xlsx file formats has left a lot to be desired. Fortunately, the XLConnect package has been created to fill this void, and now JGR 1.7-8 includes integration with XLConnect package to load .xls

Read more »

Learning R: Project 1, Part 2

October 30, 2011
By
Learning R: Project 1, Part 2

So it's been a week since I started down this path.  I worked most of this out over last weekend, went to a conference, had hectic week at work, and then realized I lost my work.  Gah.I'll be posting my general thoughts on R later.  Most...

Read more »

Bayesian ideas and data analysis

October 30, 2011
By
Bayesian ideas and data analysis

Here is another Bayesian textbook that appeared recently. I read it in the past few days and, despite my obvious biases and prejudices, I liked it very much! It has a lot in common (at least in spirit) with our Bayesian Core, which may explain why I feel so benevolent towards Bayesian ideas and

Read more »