December 2014

Fibonacci Sequence in R with Memoization

December 7, 2014 | adamleerich

This is in response to Andrew Z’s post on R-Bloggers Friday about using recursion to calculate numbers in the Fibonacci sequence. http://heuristicandrew.blogspot.com/2014/12/fibonacci-sequence-in-r-and-sas.html I’ve re-written the author’s Fibonacci function here. The only really change is that this one is extended to … Continue reading → [Read more...]

Mapping your phone’s location history, part 1

December 6, 2014 | Jasper Ginn

It’s no secret that phone manufacturers log your geolocation at all times, but at least they’re open about it these days. I had no doubts that my Google Nexus 5 phone logged every move I made, and I was interested to see how I could map these geolocations. If ...
[Read more...]

SAS PROC MCMC in R: Nonlinear Poisson Regression Models

December 6, 2014 | Wingfeet

In exercise 61.1 the problem is that the model has bad mixing. In the SAS manual the mixing is demonstrated after which a modified distribution is used to fix the model.In this post the same problem is tackled in R; MCMCpack, RJags, RStan and LaplaceDemon. MCMCpack has quite some mixing ... [Read more...]

Winning a Marathon

December 5, 2014 | jlebeau

The proliferation and participation in the marathon has increased substantially in recent years.  No longer is the distance an event reserved for the super-athletic, but at least in the US one can from many vantage points on highways or streets se... [Read more...]

Fibonacci sequence in R and SAS

December 5, 2014 | Andrew Z

Because the Fibonacci sequence is simply defined by recursion, it makes for an elegant programming exercise. Here is one way to do it in SAS, and another way to do it in R. I've also included unit testing code to check that it works. Fibonacci sequence in SAS using a ... [Read more...]

Adding authentication to a shiny server

December 5, 2014 | January

Umph, that was a tough one. I spent ages figuring out how to do it correctly. I have a server running apache (on port 80) and shiny on port (say) 11111. Shiny has its own document root, and within this root, we have a shiny app, say, “example”. So to view this ... [Read more...]

Data point locator function

December 5, 2014 | Marc in the box

Here's a little function to select data points in an open graphical device (ptlocator()). The function does a scaling of the x and y axes in order to give them equal weighting and remove the influence of differing units or ranges. The function then cal... [Read more...]

New features in jsonlite 0.9.14

December 4, 2014 | Jeroen Ooms

The jsonlite package implements a robust, high performance JSON parser and generator for R, optimized for statistical data and the web. This week version 0.9.14 appeared on CRAN which adds some handy new features. Significant Digits By defaul...
[Read more...]

Initial steps towards reproducible research

December 4, 2014 | Karl Broman

In anticipation of next week’s Reproducible Science Hackathon at NESCent, I was thinking about Christie Bahlai’s post on “Baby steps for the open-curious.” Moving from Ye Olde Standard Computational Science Practice to a fully reproducible workflow seems a monumental task, but partially reproducible is better than not-at-all reproducible, ... [Read more...]

A comment on preparing data for classifiers

December 4, 2014 | John Mount

I have been working through (with some honest appreciation) a recent article comparing many classifiers on many data sets: “Do we Need Hundreds of Classifiers to Solve Real World Classification Problems?” Manuel Fernández-Delgado, Eva Cernadas, Senén Barro, Dinani Amorim; 15(Oct):3133−3181, 2014 (which we will call “the DWN paper” in ... [Read more...]

Some R User Group Highlights for November 2014

December 4, 2014 | Joseph Rickert

by Joseph Rickert November was an active and creative month for R user groups with over 50 events listed on the Revolution Analytics' Community Calendar. Here are some highlights that can be found by visiting the websites of a few of the groups that post and share presentations. James Thomson was ... [Read more...]

IDEAS for BloGGING tOPICS

December 3, 2014 | numbr crunch - Blog

Review of the University of Washington Data Science CertificationInitial analysis of the Titanic Data Set from KaggleCriteo Labs Ad-Click data Kaggle Competition experienceOnline sources for datasetsWhat data tools stack I am using and whyHow to use Github [...] [Read more...]
1 8 9 10 11 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)