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 »

The present and future of the R blogosphere (~7 minute video from useR2011)

October 30, 2011
By
The present and future of the R blogosphere (~7 minute video from useR2011)

This is (roughly) the lightning talk I gave in useR2011. If you are a reader of R-bloggers.com then this talk is not likely to tell you anything new. However, if you have a friend, college or student who is a new useRs of R, this talk will offer him a decent introduction to what the R Read more...

Read more »

Modelling with R: part 5

October 30, 2011
By

In our exercise of learning modelling in R, we have till now succeeded in doing the following:Importing the dataPreparing and transforming the dataRunning a logistic regressionCreating a decision treeSpecifically, we created a decision tree using the r...

Read more »

Proc report for simple statistics

October 30, 2011
By
Proc report for simple statistics

Ken Beath, of Macquarie University, commented on an earlier entry that the best way to generate summary statistics is using proc report. While the best tools might differ, depending on the purpose, we wanted to share Ken's code demonstrating how to re...

Read more »

Rcpp reverse dependency graph

October 30, 2011
By
Rcpp reverse dependency graph

I played around with reverse dependencies of Rcpp. At the moment, 44 packages depend on Rcpp and the number goes up to 53 when counting recusive reverse dependencies. I've used graphviz for the representation of the directed graph Here is the c...

Read more »

Installing R 2.14.0 on an iBook G4 running Mac OS 10.4.11

October 30, 2011
By
Installing R 2.14.0 on an iBook G4 running Mac OS 10.4.11

My 12" iBook G4 is celebrating its 8th birthday today! Time for a little present. How about R 2.14.0?The iBook is still in daily use, mostly for browsing the web, writing e-mails and this blog; and I still use it for R as well. For a long time it run R...

Read more »

Anarchy Golf! And that’s your Sunday gone.

October 29, 2011
By
Anarchy Golf! And that’s your Sunday gone.

I like to follow good practice when I program. I want my code to be readable, properly indented, modular and re-usable. And I want my variables to have descriptive names. There’s nothing that I hate moderately dislike more than arbitrary … Continue reading →

Read more »

Plotting gain chart

October 29, 2011
By
Plotting gain chart

Gain chart is a popular method to visually inspect model performance in binary prediction. It presents the percentage of captured positive responses as a function of selected percentage of a sample. It is easy to obtain it using ROCR package plott...

Read more »