Skip to content

Instantly share code, notes, and snippets.

View fhr's full-sized avatar

Francine Bennett fhr

View GitHub Profile
@jkeirstead
jkeirstead / need-analysis.r
Last active October 13, 2015 03:48
Analysis of DECC NEED data
## Analysis of DECC NEED data
## James Keirstead
## 22 November 2012
##
## Underlying data available from
## http://www.decc.gov.uk/en/content/cms/statistics/energy_stats/en_effic_stats/need/need.aspx
## For more info, see
## http://www.jameskeirstead.ca/blog/we-need-more-data/
@bhoung
bhoung / k-fold CV.r
Created April 24, 2014 00:52
starter code for k fold cross validation using the iris dataset
# original example from Digg Data website (Takashi J. OZAKI, Ph. D.)
# http://diggdata.in/post/58333540883/k-fold-cross-validation-in-r
library(plyr)
library(randomForest)
data <- iris
# in this cross validation example, we use the iris data set to