September 2015

On Lagrange Polynomials

September 30, 2015 | 0 Comments

Let’s take $n$ distinct points on the real line: Yay. We can now define the Lagrange Polynomials : Why am I making you look at this beauté? Turns out there’s some neat mathematical properties - namely in the subject of polynomial interpolation. That’s a fancy way of saying ‘... [Read more...]

License

September 30, 2015 | 0 Comments

LICENSE Unless otherwise mentioned code from this blog can used as per MIT or Apache 2.0 license. [Read more...]

Disclaimer

September 30, 2015 | 0 Comments

Disclaimer Your disclaimer text here NOTE:Some information in this website might be copied from other websites. If you see something is your copyright or some... [Read more...]

Understanding empirical Bayes estimation (using baseball statistics)

September 30, 2015 | 0 Comments

Which of these two proportions is higher: 4 out of 10, or 300 out of 1000? This sounds like a silly question. Obviously , which is greater than . But suppose you were a baseball recruiter, trying to decide which of two potential players is a better batter based on how many hits they get. One ... [Read more...]

Playing with Leaflet (and Radar locations)

September 30, 2015 | 0 Comments

Yesterday, my friend Fleur did show me some interesting features of the leaflet package, in R. library(leaflet) In order to illustrate, consider locations of (fixed) radars, in several European countries. To get the data, use download.file("http://carte-gps-gratuite.fr/radars/zones-de-danger-destinator.zip","radar.zip") unzip("radar.zip")   ext_...
[Read more...]

#MonthOfJulia Day 25: Interfacing with Other Languages

September 30, 2015 | 0 Comments

Julia has native support for calling C and FORTRAN functions. There are also add on packages which provide interfaces to C++, R and Python. We'll have a brief look at the support for C and R here. Further details on these and the other supported languages can be found on ... [Read more...]

Combining Choropleth Maps and Reference Maps in R

September 30, 2015 | 0 Comments

Recent updates to my mapping packages now make it easy to combine choropleth maps and reference maps in R. All you have to do is pass the parameter reference_map = TRUE to the existing functions. This should “just work”, regardless of which region you zoom in on or what data ...
[Read more...]

For Some Definition of “Directly” and/or “Contort”

September 30, 2015 | 0 Comments

Junk Charts did a post on Don’t pick your tool before having your design and made a claim that this: “cannot be produced directly from a tool (without contorting your body in various painful locations)”. I beg to differ. With R & ggplot2, I get to both pick my tool ...
[Read more...]

Hacking The New Lahman Package 4.0-1 with R-Studio

September 30, 2015 | 0 Comments

The developers of the Lahman package for R have recently updated the package to include 2014 MLB stats! For those not familiar, this R package recreates Sean Lahman’s Baseball Database into a quick and handy little R package. I’ve written on the Lahman package before, and even suggested adding ... [Read more...]

Rebuilding Map Example With Apply Functions

September 30, 2015 | 0 Comments

Yesterday Hadley’s functional programming package purrr was published to CRAN. It is designed to bring convenient functional programming paradigma and add another data manipulation framework to R. “Where dplyr focusses on data frames, purr... [Read more...]

Rebuilding Map Example With Apply Functions

September 30, 2015 | 0 Comments

Yesterday Hadley’s functional programming package purrr was published to CRAN. It is designed to bring convenient functional programming paradigma and add another data manipulation framework for R. “Where dplyr focusses on data frames, purrr focusses on vectors” – Hadley Wickham in a blogpost The core of the package consists of ... [Read more...]

Unbalanced Data Is a Problem? No, BALANCED Data Is Worse

September 29, 2015 | 0 Comments

Say we are doing classification analysis with classes labeled 0 through m-1. Let Ni be the number of observations in class i. There is much handwringing in the machine learning literature over situations in which there is a wide variation among the Ni. I will argue here, though, that the problem ...
[Read more...]

The Discrete Charm of the Fourier Transform

September 29, 2015 | 0 Comments

The other day, I picked up the latest copy of the CAS’ journal, Variance and skipped to the back where Leigh Halliwell had an article. I hope that I’m well on record as being one of his biggest fans, but if not, let me remedy that now. Leigh Halliwell ... [Read more...]

ThinkToStart is looking for R Authors

September 29, 2015 | 0 Comments

ThinkToStart is growing and we need more people who help us on our mission to bridge the gap between data and business. Therefore we are looking for motivated R fans that help us to produce more great content. What is ThinkToStart? ThinkToStart started as a blog mainly about R tutorials ... [Read more...]

purrr 0.1.0

September 29, 2015 | 0 Comments

  Purrr is a new package that fills in the missing pieces in R’s functional programming tools: it’s designed to make your pure functions purrr. Like many of my recent packages, it works with magrittr to allow you to express complex operations bying combining simple pieces in a standard ... [Read more...]

Gallery of Images from Boston EARL Conference

September 29, 2015 | 0 Comments

Were you at the EARL London R Conference this year? See if you can find yourself in our selection of images of this popular event. Look good? Wish you were there? Still a chance to come to EARL Boston on … Continue reading → [Read more...]

Why Big Data? Learning Curves

September 29, 2015 | 0 Comments

by Bob Horton Microsoft Senior Data Scientist Learning curves are an elaboration of the idea of validating a model on a test set, and have been widely popularized by Andrew Ng’s Machine Learning course on Coursera. Here I present a simple simulation that illustrates this idea. Imagine you use ... [Read more...]

Shiny-based Online Tool for X-13 Seasonal Adjustment: New Features

September 29, 2015 | 0 Comments

The R package seasonal makes it easy to use X-13ARIMA-SEATS, the seasonal adjustment software by the U.S. Census Bureau. In a previous post, I wrote about www.seasonal.website, a Shiny-based website showcasing the use of seasonal. Even if you are not using R, the website allows you ...
[Read more...]

Success rates of automated ARIMA fitting

September 29, 2015 | 0 Comments

A function for testing auto.arima() This is the third, and the last from me on this particular topic for a while, in a series of posts on fitting time series models and comparing time series to eachother, originally inspired by a question on the Cross-Validated Q&A site. In ... [Read more...]
1 2 3 12

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)