R

Blogs on the R software.

Interactive visualization of non-linear logistic regression decision boundaries with Shiny

July 24, 2014
By
Interactive visualization of non-linear logistic regression decision boundaries with Shiny

(skip to the shiny app) Model building is very often an iterative process that involves multiple steps of choosing an algorithm and hyperparameters, evaluating that model / cross validation, and optimizing the hyperparameters. I find a great aid in this process, for classification tasks, is not only to keep track of the accuracy across models, »more

Read more »

Notes from the 2nd R in Insurance Conference

July 22, 2014
By
Notes from the 2nd R in Insurance Conference

The 2nd R in Insurance conference took place last Monday, 14 July, at Cass Business School London. This one-day conference focused once more on applications in insurance and actuarial science that use R. Topics covered included reserving, pricing, loss...

Read more »

Reanalyzing the Schnall/Johnson “cleanliness” data sets: New insights from Bayesian and robust approaches

July 22, 2014
By

[mathjax] I want to present a re-analysis of the raw data from two studies that investigated whether physical cleanliness reduces the severity of moral judgments – from the original study (n = 40; Schnall, Benton, & Harvey, 2008), and from a ...

Read more »

#HIBAR: Why Using Age as a Proxy for Testosterone is a Bad Deal.

July 22, 2014
By

This is a post-publication peer review (HIBAR: “Had I Been A Reviewer”) of the following paper: Levi, M., Li, K., & Zhang, F. (2010). Deal or no deal: Hormones and the mergers and acquisitions game. Management Science 56, 1462 -1483. A ...

Read more »

UseR 2014, days 3-4

July 21, 2014
By
UseR 2014, days 3-4

Three weeks ago, I’d commented on the first two days of the UseR 2014 conference. I’m finally back to talk about the second half. Dirk Eddelbuettel on Rcpp Dirk Eddelbuettel gave a keynote on Rcpp [slides]. The goal of Rcpp is to have “the speed of C++ with the ease and clarity of R.” He […]

Read more »

Guns are cool – time effects

July 19, 2014
By
Guns are cool – time effects

September last year I made a post using the shootingtracker data. It is attempted in shootingtracker to register all shootings with at least four victims, be they wounded or dead. The data starts  January 1st 2013, which means that by now the...

Read more »

Why hadn’t I written a function for that?

July 17, 2014
By
Why hadn’t I written a function for that?

I’m often typing the same bits of code over and over. Those bits of code really should be made into functions. For example, I’m still using base graphics. (ggplot2 is on my “to do” list, really!) Often some things will be drawn with a slight overlap of the border of the plotting region. And in […]

Read more »

Comparing localsolver with Rglpk on k-medoids example

July 16, 2014
By

Recently I have coauthored a new localsolver package that can be used to solve large scale optimization problems from R. It is a wrapper around commercial solver that is free for academia. If you are interested why it is worthwhile to give it a lo...

Read more »

another R new trick [new for me!]

July 15, 2014
By
another R new trick [new for me!]

While working with Andrew and a student from Dauphine on importance sampling, we wanted to assess the distribution of the resulting sample via the Kolmogorov-Smirnov measure where F is the target.  This distance (times √n) has an asymptotic distribution that does not depend on n, called the Kolmogorov distribution. After searching for a little while, […]

Read more »

Simple user interface in R to get login details

July 15, 2014
By
Simple user interface in R to get login details

Occasionally I have to connect to services from R that ask for login details, such as databases. I don't like to store my login details in the R source code file, instead I would prefer to enter the my login details when I execute the code.Fortunately,...

Read more »


Subscribe

Email:

  Subscribe