Looking for Preference in All the Wrong Places: Neuroscience Suggests Choice Model Misspecification

June 22, 2015
By
Looking for Preference in All the Wrong Places: Neuroscience Suggests Choice Model Misspecification

At its core, choice modeling is a utility estimating machine. Everything has a value reflected in the price that we are willing to pay in order to obtain it. Here are a collection of Smart Watches from a search of Google Shopping. You are free to click...

Read more »

DeployR Data I/O

June 22, 2015
By

by Sean Wells, Senior Software Engineer, Microsoft and David Russell DeployR exists to solve a number of fundamental R analytics integration problems faced by application developers. For example, have you ever wondered how you might execute an R script from within a Web-based dashboard, an enterprise middleware solution, or a mobile application? DeployR makes it very simple. In fact,...

Read more »

LondonR June Meeting

June 22, 2015
By
LondonR June Meeting

The Mango Solutions LondonR meeting at UCL on Monday 15th June 2015 was successful as usual with over 200 attendees throughout the day. Thanks to everyone who attended to help make the event such a success. It was great to … Continue reading →

Read more »

Editing Dockerfiles with Architect

June 22, 2015
By
Editing Dockerfiles with Architect

Monday 22 June 2015 - 14:36 In the last two years, software development had taken a step forward with the advent of the Docker. For the uninitiated, a Docker is a tool that automates the deployment of applications by packaging them with their dependencies in a virtual container, eliminating the need for...

Read more »

New Shiny cheat sheet and video tutorial

June 22, 2015
By
New Shiny cheat sheet and video tutorial

We’ve added two new tools that make it even easier to learn Shiny. Video tutorial The How to Start with Shiny training video provides a new way to teach yourself Shiny. The video covers everything you need to know to build your own Shiny apps. You’ll learn: The architecture of a Shiny app A template

Read more »

Stop and Frisk: Blacks stopped 3-6 times more than Whites over 10 years

June 21, 2015
By
Stop and Frisk: Blacks stopped 3-6 times more than Whites over 10 years

The NYPD provides publicly available data on stop and frisks with data dictionaries, located here. The data, ranging from 2003 to 2014, contains information on over 4.5 million stops. Several variables such as the age, sex, and race of the person stopped are included. I wrote some R code to clean and compile the data … Continue reading...

Read more »

12 new R jobs (2015-06-22) – from @California to @Nottingham

June 21, 2015
By
12 new R jobs (2015-06-22) – from @California to @Nottingham

This is the bimonthly post (for 2015-06-22) for new R Jobs from R-users.com. Employers: visit this link to post a new R job to the R community (it’s free and quick). Job seekers: please follow the links below to learn more and apply for your job of interest (or visit previous R jobs posts). Full-Time Data Scientist (@Nottingham) Capital One – Posted by S.Kugadasan Nottingham England, United Kingdom 19 Jun2015 Full-Time...

Read more »

Trading Moving Averages with Less Whipsaws

June 21, 2015
By

Using a simple moving average to time markets has been a successful strategy over a very long period of time. Nothing to brag home about, but it cuts the drawdown of a buy and hold by about a half, sacrificing less than 1% of the CAGR in the process. In two words, simple yet effective. The post

Read more »

Organize a walk around London with R

June 21, 2015
By
Organize a walk around London with R

The subtitle of this post can be "How to plot multiple elements on interactive web maps in R".In this experiment I will show how to include multiple elements in interactive maps created using both plotGoogleMaps and leafletR. To complete the work prese...

Read more »

SAS PROC MCMC example 12 in R: Change point model

June 21, 2015
By
SAS PROC MCMC example 12 in R: Change point model

I restarted at working my way through the PROC MCMC examples. The SAS manual describes this example: Consider the data set from Bacon and Watts (1971), where  is the logarithm of the height of the stagnant surface layer and the covariate...

Read more »

dimple charts for R

June 20, 2015
By
dimple charts for R

dimple is a simple-to-use charting API powered by D3.js. Making use of the nice htmlwidgets package it only took a minimum amount of coding to make the dimple library available from R. You can find the dimple R package at github.com/Bart6114/dimple a...

Read more »

Interactive R Notebooks with Jupyter and SageMathCloud

June 20, 2015
By
Interactive R Notebooks with Jupyter and SageMathCloud

Has the time come for Jupyter/IPython notebooks in R? This format, mixing code chunks, output, and markdown all in the same interface, is already wildly popular among Python users. Here's how to get a quick start using interactive, collaborative notebooks in Jupyter, with the help of SageMathCloud.

Read more »

DO Something Nifffty with R

June 19, 2015
By
DO Something Nifffty with R

@briandconnelly (of pushoverr fame) made a super-cool post about connecting R to @IFTTT via IFTTT’s “Maker” channel. The IFTTT Maker interface to receive events is fairly straightforward and Brian’s code worked flawlessly, so it was easy to tweak a bit and wrap into a package. To get started, you can clone an example public IFTTT

Read more »

Segmentation of methylation profiles using methylKit

June 19, 2015
By
Segmentation of methylation profiles using methylKit

methylKit is an R package for DNA methylation analysis and annotation using high-throughput bisulfite sequencing data. We recently included a new function in methylKit called methSeg(). The function can segment methylation profiles (methylRaw obje...

Read more »

R 3.2.1 is released

June 19, 2015
By
R 3.2.1 is released

R 3.2.1 (codename “World-Famous Astronaut”) was released yesterday. You can get the latest binaries version from here. (or the .tar.gz source code from here). The full list of new features and bug fixes is provided below. Upgrading to R 3.2.1 on Windows If you are using Windows you can easily upgrade to the latest version of R using the installr package. … Continue reading...

Read more »

Using Hadoop with R: It Depends.

June 19, 2015
By

by Bill Jacobs, Director Technical Sales, Microsoft Advanced Analytics In the course of working with our Hadoop users, we are often asked, what's the best way to integrate R with Hadoop? The answer, in nearly all cases is, It depends. Alternatives ranging from open source R on workstations, to parallelized commercial products like Revolution R Enterprise and many steps...

Read more »

Amazon EC2: Upgrading R

June 19, 2015
By

After installing R and Shiny on my EC2 instance I discovered that the default version of R was a little dated and I wanted to update to R 3.2.0. It's not terribly complicated, but here are the steps I took. First, become root. Remove the old version of R. Edit /etc/apt/sources.list and add the following: The post

Read more »

Connecting R to Everything with IFTTT

June 18, 2015
By
Connecting R to Everything with IFTTT

IFTTT ("if this then that") is one of my favorite tools. I use it to keep and share articles, turn on my home's lights at sundown, alert me when certain keywords are mentioned on Twitter/Reddit/etc., and many other things. Recently, the great people at IFTTT announced the Maker Channel, which allows recipes to make and receive web requests. This...

Read more »

Tips & Tricks 9: Shape Changes and Hypothetical Shapes

June 18, 2015
By
Tips & Tricks 9: Shape Changes and Hypothetical Shapes

Geomorph users,This month's tips and tricks was prompted by a user email from Tim Astrop, thanks Tim!How can I create a hypothetical shape representing a point in shape space?Today we will use some relatively simple R code to create a shape based on position in a Principal Component (PC) shape space and visualise this shape as a change from the mean using...

Read more »

Secure password hashing in R with bcrypt

June 18, 2015
By
Secure password hashing in R with bcrypt

The new package bcrypt provides an R interface to the OpenBSD ‘blowfish’ password hashing algorithm described in A Future-Adaptable Password Scheme by Niels Provos. The implementation is derived from the py-bcrypt module for Python which is a wrapper for the OpenBSD implementation. Bcrypt is used for secure password hashing....

Read more »

How to Extract a String Between 2 Characters in R and SAS

How to Extract a String Between 2 Characters in R and SAS

Introduction I recently needed to work with date values that look like this: mydate Jan 23/2 Aug 5/20 Dec 17/2 I wanted to extract the day, and the obvious strategy is to extract the text between the space and the slash.  I needed to think about how to program this carefully in both R and

Read more »

Fishing for packages in CRAN

June 18, 2015
By
Fishing for packages in CRAN

by Joseph Rickert It is incredibly challenging to keep up to date with R packages. As of today (6/16/15), there are 6,789 listed on CRAN. Of course, the CRAN Task Views are probably the best resource for finding what's out there. A tremendous amount of work goes into maintaining and curating these pages and we should all be grateful...

Read more »

New Shiny App for Exploring Census Tract Demographics

June 18, 2015
By
New Shiny App for Exploring Census Tract Demographics

Today I am happy to announce a new web app I have created for exploring Census Tract Demographics in California. You can view the running app here. The source code is available here. I view the app as a companion to my new package choroplethrCaCensusTract, which is designed to make it easier to work with The post

Read more »

Free Webinar: Intro to SparkR

June 18, 2015
By
Free Webinar: Intro to SparkR

Are you interested in combining the power of R and Spark?  An “Intro to SparkR” webinar will take place on July 15, 2015 at 10 am California time. Everyone is welcome to attend. Agenda: – What is SparkR? – Recent … Continue reading →

Read more »

Big Data and Chess Follow-up: Predictive Piece Values Over the Course of a Game

June 17, 2015
By
Big Data and Chess Follow-up: Predictive Piece Values Over the Course of a Game

In a previous post I used the the Million Base 2.2 chess data base to calculate the predictive piece values of chess pieces. It worked out pretty well and here, just for fun, I thought I would check out what happens with the predictive piece values over the course of a chess game. In the previous analysis,...

Read more »

dynamic mixtures [at NBBC15]

June 17, 2015
By
dynamic mixtures [at NBBC15]

A funny coincidence: as I was sitting next to Arnoldo Frigessi at the NBBC15 conference, I came upon a new question on Cross Validated about a dynamic mixture model he had developed in 2002 with Olga Haug and Håvård Rue . The dynamic mixture model they proposed replaces

Read more »

‘Variable Importance Plot’ and Variable Selection

June 17, 2015
By
‘Variable Importance Plot’ and Variable Selection

Classification trees are nice. They provide an interesting alternative to a logistic regression.  I started to include them in my courses maybe 7 or 8 years ago. The question is nice (how to get an optimal partition), the algorithmic procedure is nice (the trick of splitting according to one variable, and only one, at each node, and then to move forward, never backward),...

Read more »

Confidence Intervals for prediction in GLMMs

June 17, 2015
By
Confidence Intervals for prediction in GLMMs

With LM and GLM the predict function can return the standard error for the predicted values on either the observed data or on new data. This is then used to draw confidence or prediction intervals around the fitted regression lines. The confidence intervals (CI) focus on the regression lines and can be interpreted as (assuming

Read more »

Sharing environments using Vagrant

June 17, 2015
By

Ever thought about what is required to create validated software? At Mango we have as it is fundamental to many of our projects. Software validation is a big topic so I’m going to focus on one aspect: How do we … Continue reading →

Read more »