Making R Files Executable (under Windows)

February 18, 2015
By

Although it is reasonable that R scripts get opened in edit mode by default, it would be even nicer (once in a while) to run them with a simple double-click. Well, here we go ... Choosing a new file extension name (.Rexec) First, we have to think about a new file extension name. While double-click to run is a nice-to-have, the...

Read more »

Waterfall plots in R

February 18, 2015
By
Waterfall plots in R

Follow Email Last week I posted about an orphaned paper of mine, a piece of research that hasn’t yet found a home and which I’m unlikely to find further time to work on. Abandoning something that you’ve worked hard on is disappointing and so it made sense to release it for those who were interested.

Read more »

R Machine Learning Essentials

February 18, 2015
By
R Machine Learning Essentials

This week, the post is an interview with Michele Usuell

Read more »

Online course: Survey Analysis in R with Thomas Lumley

February 17, 2015
By

On March 20, Thomas Lumley, the creator of the R Package “Survey”, will give an online course (in statistics.com) titled “Survey Analysis in R” The purpose of this 4-week online course, is to teach survey researchers who are familiar with R how to use it in survey research. The course uses Lumley’s Survey package. You will learn how to...

Read more »

A “Startlingly Neat & Simple” Rule & Five Graphs About Patterns That Might Surprise You

February 17, 2015
By
A “Startlingly Neat & Simple” Rule & Five Graphs About Patterns That Might Surprise You

George Zipf popularized an idea—Zipf’s Law—that approximates populations of cities, distribution of money in counties, and how frequently words are used. Nobel Prize-winning columnist Paul Krugmans wrote of Zipf’s Law that “the usual complaint about economic theory is that our models are oversimplified — that they offer excessively neat views of complex, messy reality. [In the case of...

Read more »

R and MPI on Ohio Supercomputer Center’s Oakley cluster

February 17, 2015
By

A few years ago, I wrote a short guide to Using R and snow on the Ohio Supercomputer Center’s Glenn cluster. Several things have changed in the world of R since then (namely, the inclusion of the parallel package into … Continue reading →

Read more »

An Attempt At Replicating David Varadi’s Percentile Channels Strategy

February 17, 2015
By
An Attempt At Replicating David Varadi’s Percentile Channels Strategy

This post will detail an attempt at replicating David Varadi’s percentile channels strategy. As I’m only able to obtain data … Continue reading →

Read more »

Spring Lecture – Zurich, February 2015

February 17, 2015
By

(This article was first published on Rmetrics blogs, and kindly contributed to R-bloggers) To leave a comment for the author, please follow the link and comment on his blog: Rmetrics blogs. R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web...

Read more »

Applied Predictive Modeling – a live stream seminar with Max Kuhn

February 17, 2015
By

Vivian Zhang and NYC-Open-Data will be hosting Max Kuhn’s event and do live streaming from 7pm to 9pm in nyc on Feb 18th: http://www.meetup.com/NYC-Open-Data/events/218865617/ The link for live streaming will be available on twitter @NycDataSci around 6:30pm tmr. ==================================== Max Kuhn, Director is Nonclinical Statistics of Pfizer and also the author of Applied Predictive Modeling. He will join us and...

Read more »

Tips & Tricks 6: Exploring Data for Outliers

February 17, 2015
By

Geomorph users,A new function in geomorph 2.1.3 allows the user to explore Procrustes superimposed data for outliers (plotOutliers). Here I shall provide a few example for loops to demonstrate how you can explore your data for outliers prior to analyse...

Read more »

Geomorph update 2.1.3 Now Available!

February 17, 2015
By
Geomorph update 2.1.3 Now Available!

Geomorph users,We have uploaded version 2.1.3 to CRAN. The windows and mac binaries have been compiled and the tarball is available.NOTE: Version 2.1.3 has a small bug in readland.tps()that unfortunately slipped through the cracks. So yo...

Read more »

R Crash Course – Zurich, 26 February 2015

February 17, 2015
By

(This article was first published on Rmetrics blogs, and kindly contributed to R-bloggers) To leave a comment for the author, please follow the link and comment on his blog: Rmetrics blogs. R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web...

Read more »

Reading Arduino data directly into R

February 17, 2015
By
Reading Arduino data directly into R

I have experimented with reading an Arduino signal into R in the past, using Rserve and Processing. Actually, it is much easier. I can read the output of my Arduino directly into R with the scan function. Here is my temperature sensor example again:And all it needs to read the signal into the R...

Read more »

Introducing js: tools for working with JavaScript in R

February 16, 2015
By
Introducing js: tools for working with JavaScript in R

A new package has appeared on CRAN called js. This package implements bindings to several popular JavaScript libraries for validating, reformating, optimizing and analyzing JavaScript code. It builds on the V8 engine, the fully standalone JavaScript engine in R. Syntax Validation Several R packages allow the user to supply JavaScript code to...

Read more »

An R tutorial for Microsoft Excel users

February 16, 2015
By

If you currently use a spreadsheet like Microsoft Excel for data analysis, you might be interested in taking a look at this tutorial on how to transition from Excel to R by Tony Ojeda. The tutorial explains how to use R functions in place of Excel formulas, including tools like =AVERAGE and =VLOOKUP. For the most part, it uses...

Read more »

Bayesian statistics and clinical trial conclusions: Why the OPTIMSE study should be considered positive

February 16, 2015
By
Bayesian statistics and clinical trial conclusions: Why the OPTIMSE study should be considered positive

Statistical approaches to randomised controlled trial analysis The statistical approach used in the design and analysis of the vast majority of clinical studies is often referred to as classical or frequentist. Conclusions are made on the results of hypothesis tests with generation of p-values and confidence intervals, and require that the correct conclusion be drawn

Read more »

SAS to R Migration

February 16, 2015
By

By Andy Nicholls, Head of Consulting (UK) Why do it? Mango has been involved in an increasing number of engagements where customers are seeking to migrate from SAS to R.  There are a number of different business drivers for these … Continue reading →

Read more »

Customer segmentation – LifeCycle Grids with R

February 16, 2015
By
Customer segmentation – LifeCycle Grids with R

I want to share a very powerful approach for customer segmentation in this post. It is based on customer’s lifecycle, specifically on frequency and recency of purchases. The idea of using these metrics comes from the RFM analysis. Recency and frequency are very important behavior metrics. We are interested in frequent and recent purchases, because frequency... Read More »

Read more »

RTutor Kicks Off: An Interactive R Problem Set about Top Income Taxation

February 16, 2015
By
RTutor Kicks Off: An Interactive R Problem Set about Top Income Taxation

RTutor is a new R package that allows to develop interactive R exercises. Problem sets can be solved off-line or can be hosted online via shiny server. Try out an Interactive Problem Set about Optimal Taxation of Top Labor Incomes Jonas Send has written a very nice interactive R problem set that allows you to explore the key insights of the...

Read more »

Mapping the world with tweets (including a GIF without cats and a Shiny App).

February 16, 2015
By
Mapping the world with tweets (including a GIF without cats and a Shiny App).

A few days ago, I collected 30 minutes of tweets all around the world. I used the twitteR and streamR packages for this. The nice thing about those tweets is that they have geo-information associated with them. Not all of them, of course, but more than...

Read more »

12 nifty tips for scientists who use computers

February 16, 2015
By

Simple things are good. Here is a list of 12 things that I find simple and useful, yet not many of my colleagues use them. The list is R-biased. Knitr. Intuitive tool to integrate R and text to make reports with fancy fonts, figures, syntax-highlighted R code and equations. If … Continue reading →

Read more »

How-to go parallel in R – basics + tips

February 16, 2015
By
How-to go parallel in R – basics + tips

Today is a good day to start parallelizing your code. I've been using the parallel package since its integration with R (v. 2.14.0) and its much easier than it at first seems. In this post I'll go through the basics for implementing parallel computations in R, cover a few common pitfalls, and give tips on how to avoid them....

Read more »

pacman 0.2.0: Initial CRAN Release

February 16, 2015
By
pacman 0.2.0: Initial CRAN Release

We’re please to announce the first CRAN release of pacman v. 0.2.0. pacman is the combined work of Dason Kurkiewicz & Tyler Rinker. pacman is an R package management tool that combines the functionality of base library related functions into intuitively … Continue reading →

Read more »

Minimist: an example of writing native JavaScript bindings in R

February 15, 2015
By
Minimist: an example of writing native JavaScript bindings in R

A new package has appeared on CRAN called minimist, which implements an interface to the popular JavaScript library. This package has only one function, used for argument parsing. For example in RGui on OSX, the output of commandArgs() looks like this: > commandArgs() "R" ...

Read more »

Introduction to OpenCPU for R on EC2 with Python

February 15, 2015
By
Introduction to OpenCPU for R on EC2 with Python

OpenCPU is (simply put) a server implementing a RESTful web API for remotely executing R functions and retrieving results. In this tutorial I am going to showcase how OpenCPU can be installed on an EC2 instance running Ubuntu 14.04. Python and … Continue reading →

Read more »

Testing for Multivariate Normality

February 15, 2015
By

The assumption that multivariate data are (multivariate) normally distributed is central to many statistical techniques. The need to test the validity of this assumption is of paramount importance, and a number of tests are available.A recently released R package, MVN, by Korkmaz et al. (2014) brings together several of these procedures in a friendly and accessible way....

Read more »

Debugging with restore points instead of break points

February 15, 2015
By
Debugging with restore points instead of break points

break points and restore points The standard method to debug an R function is to set break points via the browser function. When during execution of the function, browser() is called, the R console immediately changes into an interactive debugging mode that allows to step through the code and enter any R expressions. Thanks to RStudio's visual debugging support, this...

Read more »

Introducing the streamgraph htmlwidget R Package

February 15, 2015
By
2015-02-17 15_12_00-Clipboard

We were looking for a different type of visualization for a project at work this past week and my thoughts immediately gravitated towards streamgraphs. The TLDR on streamgraphs is they they are generalized versions of stacked area graphs with free baselines across the x axis. They are somewhat controversial but have a “draw you in”

Read more »

Trial until first succes

February 15, 2015
By
Trial until first succes

Studying on in Bayesian Approaches to Clinical Trials and Health-Care Evaluation (David J. Spiegelhalter, Keith R. Abrams, Jonathan P. Myles) they state that if you have one success in a trial, that a design is needed to know what that means. For examp...

Read more »