December 2013

24 Days of R: Day 22

December 22, 2013 | PirateGrunt

I like to use Goodreads to keep track of which books I'm reading (and not reading). They very helpfully sent me an e-mail to inform me how many books I've read so far in 2013. The number is 19. Hardly an impressive number, but between job, family and trying to develop my ... [Read more...]

The Relationship between Vectorized and Devectorized Code

December 22, 2013 | John Myles White

Introduction Some people have come to believe that Julia’s vectorized code is unusably slow. To correct this misconception, I outline a naive benchmark below that suggests that Julia’s vectorized code is, in fact, noticeably faster than R’s vectorized code. When experienced Julia programmers suggest that newcomers should ... [Read more...]

Google Maps and ggmap

December 22, 2013 | Ralph

The ggmap package can be used to access maps from the Google Maps API and there are a number of examples on various statistics related blogs. These include here, here and here. The ggmap package has a function get_map that can download maps from various sources including Google Maps. ... [Read more...]

A new Oce coastline

December 22, 2013 | Dan Kelley Blog/R

Part 1: coastal applications The oce package has a world coastline file that is visibly crude on a scale suitable for continental-shelf work.  At the cost of about 1 Mbyte of storage, a candidate for a replacement is a 1:10million scale version downloaded from naturalearthdata.com (full link below). As illustrated below ... [Read more...]

Judgmental forecasting experiment

December 22, 2013 | Rob J Hyndman

The Centre for Forecasting at Lancaster University is conducting some research on judgmental forecasting and model selection. They hope to compare the performance of judgmental model selection with statistical model selection, in order to learn how to best design forecasting support systems. They would like forecasting students, practitioners and researchers ... [Read more...]

24 Days of R: Day 21

December 21, 2013 | PirateGrunt

I drove through Tennessee today. Despite having grown up in Kentucky, I had never really noticed the Tennessee flag, but earlier this year, while in Nashville, I saw it and thought it was one of the cooler state flags. I downloaded a PNG file of the flag from wikicommons and ... [Read more...]

Analysis of experimental data with R

December 21, 2013 | Wallace Campbell

It's been a while since my last video, with good reason: I started a full time job as a senior statistician about 2 months ago! Not that I spend my entire day coding in R, but I wouldn't be nearly as useful if I didn't know how to use it. Anyway, ... [Read more...]

Day length calculation

December 21, 2013 | Dan Kelley Blog/R

The winter solstice has been on many minds lately. The days are about to start getting longer … but just how fast will they do that? This post provides R that calculates and graphs day length and its variation, using uniroot() to find sunrises and sunsets as indicated by solar altitude ... [Read more...]

Solstice sunrise-sunset

December 21, 2013 | Dan Kelley Blog/R

Introduction The sunAngle() function in the oce package provides a handy way to determine sunrise/sunset azimuth angles, and this is used to find alignments for the winter solstice in Halifax, NS. Methods First, set up the problem; these may be the only lines that need editing for other places ... [Read more...]

Moon phase calculation

December 21, 2013 | Dan Kelley Blog/R

The illuminated fraction of the moon can be calculated with moonAngle() in the oce package, as illustrated graphically and in R code below.
1
2
3
4
5
6
7
library(oce) par(mar=c(3, 3, 1, 1), mgp=c(2, 0.7, 0)) # tighten margins t [Read more...]

24 Days of R: Day 20

December 20, 2013 | PirateGrunt

Some time ago, I was doing some analysis and trying to determine whether or not there was a predictive variable for a binomial response. I ran logistic regressions for about half a dozen variables in different combinations and nothing showed a fit of any significance. Well, almost nothing. I had ... [Read more...]

Simulating dice throws in R

December 20, 2013 | grumble10

I am currently following a course on probability theory in coursera (https://www.coursera.org/course/probas) and I’ve seen some graphs concerning the outcome of some dice throws. Being an R-nerd I wrote a little function to do this in R. This is nothing fancy just I find ... [Read more...]

Welcoming our Guest Bloggers

December 20, 2013 | David Smith

I'm heading out on vacation shortly but don't worry: we have a fantastic series of guest bloggers contributing to the Revolution blog for the next 3 weeks. We'll have posts from the Revolution Analytics development team, contributions from prominent R community members, and industry experts. And I'll still pop in from ... [Read more...]

What Twitter Says About A&E and Duck Dynasty

December 19, 2013 | jlebeau

I was looking on twitter and noticed a lot of people talking about Duck Dynasty and then talking about the consequences to A&E.  I was curious on what was being said.  I mined Twitter for #A&E and #duckdynasty and got the following wo... [Read more...]

24 Days of R: Day 19

December 19, 2013 | PirateGrunt

Carrying on with the multi-level model, I'm going to look at the paid and incurred workers comp losses for a large number of insurance companies. This is a similar exercise to what I did last night, but I'm now working with real, rather than simulated data and the stochastic process ... [Read more...]
1 2 3 4 5 6 14

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)