Blog Archives

Optimize your R Code using Memoization

October 11, 2018
By

This article describes how you can apply a programming technique, called Memoization, to speed up your R code and solve performance bottlenecks. Wikipedia says: ...

Read more »

Introducing the Kernel Heaping Package III

September 25, 2018
By
Introducing the Kernel Heaping Package III

In the second part of this blog series, I showed how to compute spatial kernel density estimates based on area-level data. The Kernelheaping package also supports boundary-corrected kernel density estimation, which allows us to exclude certain areas, where we know that the density must be zero....

Read more »

Do GPU-based Basic Linear Algebra Subprograms (BLAS) improve the performance of standard modeling techniques in R?

August 6, 2018
By
Do GPU-based Basic Linear Algebra Subprograms (BLAS) improve the performance of standard modeling techniques in R?

Introduction The speed or run-time of models in R can be a critical factor, especially considering the size and complexity of modern datasets. The number of data points as well as the number of features can easily be in...

Read more »

Introducing the Kernelheaping Package II

July 13, 2018
By
Introducing the Kernelheaping Package II

In the first part of Introducing the Kernelheaping Package I showed how to compute and plot kernel density estimates on rounded or interval censored data using the Kernelheaping package. Now, let’s make a big leap forward to the 2-dimensional case. Interval censoring can be generalised to rectangles or alternatively even arbitrary shapes. That may include counties, zip codes, electoral...

Read more »

Design Patterns in R

April 4, 2018
By

These notes are inspired by a talk by Stuart Sierra on Design Patterns in Functional Programming and some thoughts I found on F# for fun an profit and are reflection on how I use different strategies to solve things in R. Design Pattern seems...

Read more »

smoothScatter with ggplot2

March 5, 2018
By
smoothScatter with ggplot2

The motivation for this plot is the function: graphics::smoothScatter, basically a plot of a two dimensional density estimator. In the following I want to reproduce the features with ggplot2. ...

Read more »

Introducing the Kernelheaping Package

February 6, 2018
By
Introducing the Kernelheaping Package

In this blog article I'd like to introduce the univariate kernel density estimation for heaped (i.e. rounded or interval censored) data with the Kernelheaping package. It is not unusual to have interval censored data such as in income surveys due to anonymisation or simplification issues. However,...

Read more »

INWT’s guidelines for R code

January 25, 2018
By

"It turns out that style matters in programming for the same reason that it matters in writing. It makes for better reading.“ Douglas Crockford in JavaScript: The Good Parts ...

Read more »

A Not So Simple Bar Plot Example Using ggplot2

December 12, 2017
By
A Not So Simple Bar Plot Example Using ggplot2

This is a reproduction of the (simple) bar plot of chapter 6.1.1 in Datendesign mit R with ggplot2. To download the data you can use the following lines: dir.create("data") writeLines("*", "data/.gitignore") download.file("http://www.datendesign-r.de/alle_daten.zip", ...

Read more »

Tips for A/B Testing with R

November 22, 2017
By
Tips for A/B Testing with R

Which layout of an advertisement leads to more clicks? Would a different color or position of the purchase button lead to a higher conversion rate? Does a special offer really attract more customers – and which of two phrasings would be better? For a long time,...

Read more »

Search R-bloggers


Sponsors

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)