Blog Archives

Identifying the OS from R

June 10, 2015
By

Sometimes a bit of R code needs to know what operating system it’s running on. Here’s a short account of where you can find this information and a little function to wrap the answer up neatly. Operating systems are a platform issue, so let’s start with the constants in the list .Platform. For Windows the

Read more »

Getting R and Java 1.8 to work together on OSX

December 29, 2014
By

Hey Mac OSX users with Java 1.8 installed. Did R just request a Java 1.6 installation and then promptly crash your session?  If so, read on… The Problem A few days ago I was attempting to use the mallet package for topic models and I found that typing > library(mallet) caused two things to happen:

Read more »

There is no Such Thing as Biomedical "Big Data"

February 11, 2014
By
There is no Such Thing as Biomedical "Big Data"

At the moment, the world is obsessed with “Big Data” yet it sometimes seems that people who use this phrase don’t have a good grasp of its meaning.  Like most good buzz-words, “Big Data” sparks the idea of something grand and complicated, while sounding ordinary enough that listeners feel like they have an intuitive understanding of the concept.  However...

Read more »

More SOTU Scaling

January 30, 2014
By
More SOTU Scaling

A couple of days ago the Monkey Cage featured Ben Lauderdale’s one-dimensional scaling model of US State of the Union addresses. In this post, I replicate the analysis with a closely related model, ask what the scaled dimension actually means, and consider what things would look like if we added another one. The technical details

Read more »

A Mitochondrial Manhattan Plot

November 6, 2013
By
A Mitochondrial Manhattan Plot

Manhattan plots have become the standard way to visualize results for genetic association studies, allowing the viewer to instantly see significant results in the rough context of their genomic position.  Manhattan plots are typically shown on a l...

Read more »

Call them what you will

October 28, 2013
By

I’ve been playing around with the R package texreg for creating combined regression tables for multiple models. It’s not the only package to do that – see here for a review – but it’s often handy to be able to generate both ascii art, latex, and html versions of the same table using almost identical

Read more »

Which political science journals will have a data policy?

March 18, 2013
By
Which political science journals will have a data policy?

Making available replication materials for the research you do is A Good Thing. It’s also work, and it’s quite easy to never get around to. Certainly I claim no special virtue in this department so I am always happy when there’s an institutional stick to prod my better nature in the right direction. One such institutional

Read more »

R to Latex packages: Coverage

March 12, 2013
By

There are now quite a few R packages to turn cross-tables and fitted models into nicely formatted latex. In a previous post I showed how to use one of them to display regression tables on the fly. In this post I summarise what types of R object each of the major packages can deal with.

Read more »

Tools for making a paper

March 1, 2013
By

Since it seems to be the fashion, here’s a post about how I make my academic papers. Actually, who am I trying to kid? This is also about how I make slides, letters, memos and “Back in 10 minutes” signs to pin on the door. Nevertheless it’s for making academic papers that I’m going to

Read more »

Quantifying the international search for meaning

February 9, 2013
By
Quantifying the international search for meaning

Inspired by Preis et al.’s article Quantifying the advantage of looking forward, recently published in Scientific Reports (one of Nature publishing group’s journals), I wondered if similar big-data web-based research methods might address a question even bigger than how much different countries wonder about next year. How about the meaning of life. Who is searching

Read more »