Monthly Archives: July 2014

Fast-track publishing using the new R markdown – a tutorial and a quick look behind the scenes

July 29, 2014
By
Fast-track publishing using the new R markdown – a tutorial and a quick look behind the scenes

The new R Markdown (rmarkdown-package) introduced in Rstudio 0.98.978 provides some neat features by combining the awesome knitr-package and the pandoc-system. The system allows for some neat simplifications of the fast-track-publishing (ftp) idea using so called formats. I've created a new package, the Grmd-package, with an extension to the html_document format, called the docx_document. The formatter allows an almost...

Read more »

Hit and run. Think Bayes!

July 29, 2014
By
Hit and run. Think Bayes!

At the R in Insurance conference Arthur Charpentier gave a great keynote talk on Bayesian modelling in R. Bayes' theorem on conditional probabilities is strikingly simple, yet incredibly thought provoking. Here is an example from Daniel Kahneman to test your intuition. But first I have to start with Bayes' theorem.Bayes' theoremBayes' theorem states that given...

Read more »

analyze the fda adverse event reporting system (faers) with r

July 29, 2014
By

doctors prescribe medications for patients all the time.  all the time.  sometimes the results are beneficial, other times the drug has no discernible effect, but occasionally those substances actually cause harm.  since the drug is alre...

Read more »

Creating an analysis as a package and vignette

Creating an analysis as a package and vignette Following from my last post, I am going to go step by step through the process I use to generate an analysis as a package vignette. This will be an analysis of the tweets from the 2012 and 2014 ISMB conference (thanks to Neil and Stephen for...

Read more »

Volatility Histeresis: A First Attempt

July 28, 2014
By
Volatility Histeresis: A First Attempt

So the last time that a FRAMA strategy was tried with price crossovers, the problem was that due to counter-trending … Continue reading →

Read more »

Chain Operations: An Interesting Feature in dplyr Package

July 28, 2014
By
Chain Operations: An Interesting Feature in dplyr Package

Read more »

Data Caching

July 28, 2014
By

Data caching is not new. It is often necessary to save intermediate data files when the process of loading and/or manipulating data takes a considerable amount of time. This problem is further complicated when working with dynamic data that changes regularly. In these situations it often sufficient to use data that is current with in some time frame (e.g....

Read more »

Clipping spatial data in R

July 28, 2014
By
Clipping spatial data in R

This miniature vignette shows how to clip spatial data based on different spatial objects in R and a ‘bounding box’. Spatial overlays are common in GIS applications and R users are fortunate that the clipping and spatial subsetting functions are mature and fairly fast. We’ll also write a new function called gClip(), that will make clipping by bounding boxes...

Read more »

Comment on Sustainability and innovation in staple crop production in the US Midwest

July 28, 2014
By
Comment on Sustainability and innovation in staple crop production in the US Midwest

After writing a blog post about the paper “Sustainability and innovation in staple crop production in the US Midwest” I decided to submit a formal comment to the International Journal of Agricultural Sustainability in July 2013, which was published today. As far as I know, Heinemann et al. provided a rebuttal to my comments, which

Read more »

jpmml and R (Free Webinar)

July 28, 2014
By
jpmml and R (Free Webinar)

This free, global webinar will provide an introduction to jpmml, the world’s leading open-source PMML scoring engine currently being utilized by companies such as Airbnb to rapidly deploy predictive models into production. Webinar Format: – What is PMML? – Building … Continue reading →

Read more »