4801 search results for "git"

Tim Hortons Density

Tim Hortons Density

Tim Hortons Density Inspired by this post, I wanted to examine the locations and density of Tim Hortons restaurants in Canada. Using Stats Canada data, each census tract is queried on Foursquare for Tims locations. Setup options(stringsAsFactors = F) require(timmysDensity) require(plyr) require(maps) require(ggplot2) require(geosphere) Statistics Canada Census Data The actual Statistics Canada data at the dissemination block level can be downloaded from here. You will want to...

Read more »

Logistic Regression with R: step by step implementation part-2

December 8, 2013
By
Logistic Regression with R: step by step implementation part-2

Welcome to the second part of series blog posts! In previous part, we discussed on the concept of the logistic regression and its mathematical formulation. Now, we will apply that learning here and try to implement step by step in R. (If you know concept of logistic regression then move ahead in this part, otherwise The post Logistic...

Read more »

R Interface for Teaching

R Interface for Teaching Kaitlin Thaney asked on Twitter last week about using Ramnath Vaidyanathan's new interactive R notebook 1 2 for teaching. Liking the look of interactive R notebook by @ramnath_vaidya. Any success stories in using to teach? http://t.co/wmVuFM2Rst (HT @_inundata)— Kaitlin Thaney (@kaythaney) July 9, 2013 Now, to be clear up front,...

Read more »

Using Samatha

Using Samatha So I decided to try out David Springates Samatha package for statically building this blog. If you decide to use it, be warned, right now it is a little rough around the edges, and needs some work. David created his own blog using it, and has been using that as a test case. Unfortunately, that has meant that...

Read more »

Weekend Reading: F-Squared

December 6, 2013
By
Weekend Reading: F-Squared

Mebane Faber posted another interesting blog post: Building a Simple Sector Rotation on Momentum and Trend that caught my interest. Today I want to show how you can test such strategy using the Systematic Investor Toolbox: Mebane thank you very much for sharing your great ideas. I would encourage readers to play with this strategy

Read more »

CSI Stats: looking for traces of data fraud in R

December 6, 2013
By
CSI Stats: looking for traces of data fraud in R

Recently, I was looking at some published research, and I became concerned that it looked strange. Firstly, it had results wildly different to other similar studies, and more exciting / publishable ones. So, I was looking through the original paper … Continue reading →

Read more »

Le Monde puzzle [#843]

December 6, 2013
By
Le Monde puzzle [#843]

A Le Monde mathematical puzzle of moderate difficulty: How many binary quintuplets (a,b,c,d,e) can be found such that any pair of quintuplets differs by at least two digits? I solved it by the following R code that iteratively eliminates quintuplets that are not different enough from the first ones, for a random order of the

Read more »

On the growth of R and Python for data science

December 6, 2013
By
On the growth of R and Python for data science

A recent article by Matt Asay claims that "Python is displacing R as the language for data science". Python has certainly made some great strides in recent years, evolving beyond a data processing tool (an area where Python excels) to a data analysis tool. The Pandas project, in particular, has greatly expanded Python's ability to handle statistical data sets...

Read more »

Three Quick and Simple Data Cleaning Helper Functions (December 2013)

December 6, 2013
By

As I go about cleaning and merging data sets with R I often end up creating and using simple functions over and over. When this happens, I stick them in the DataCombine package. This makes it easier for me to remember how to do an operation and others can possibly benefit from simplified and (hopefully) more intuitive code....

Read more »

Using R to Analyze Yahoo Fantasy Football Data

December 6, 2013
By
Using R to Analyze Yahoo Fantasy Football Data

I recently created a gist that demonstrated how to authenticate with the Yahoo API, using the httr package. In this post, I will expand on this a little to downloading personal Yahoo fantasy football data and creating a graph showing my regular season ...

Read more »