I've been traveling all summer while this largest Ebola Virus Disease (EVD) outbreak in recorded history has raged in the West African countries of Guinea, Sierra Leone, Liberia, and (worryingly) Nigeria. My peripatetic state has meant that I haven't been able to devote as much attention to this outbreak as I would like to. There […]

## Entries Tagged as 'R'

## Quick and Dirty Analysis of Ebola

#### August 14th, 2014 · No Comments · Infectious Disease, R

**Tags:** Ebola Virus Disease·emerging infectious disease·epidemiology·Infectious Disease·R

## Plotting Error Bars in R

#### August 24th, 2009 · 52 Comments · R

One common frustration that I have heard expressed about R is that there is no automatic way to plot error bars (whiskers really) on bar plots. I just encountered this issue revising a paper for submission and figured I'd share my code. The following simple function will plot reasonable error bars on a bar plot. […]

**Tags:** plotting·R·Statistics

## Why Use R?

#### July 25th, 2009 · 4 Comments · Demography, R, Statistics

An anthropologist colleague who did a post-doc in a population center has been trying to get a group of people at his university together to think about population issues. This is something I'm all for and am happy to help in whatever little way I can to facilitate especially anthropologists developing their expertise in demography. […]

**Tags:** Demography·R·Statistics

## Platform for Developing Mathematical Models of Infectious Disease

#### April 14th, 2009 · 3 Comments · Infectious Disease, R, Social Network Analysis

Every once in a while someone asks me for advice on the platform to use for developing models of infectious disease. I typically make the same recommendations -- unless the person asking has something very specific in mind. This happened again today and I figured I would turn it into a blog post. The answer […]

**Tags:** epidemic models·epidemiology·Mathematica·Matlab·networks·population biology·R

## Exporting Deviance Tables to (ugh) Word

#### January 30th, 2009 · No Comments · LaTeX, R

I do my absolute best to minimize the amount of time Word is open on my computer desktop. Alas, when one collaborates widely, particularly with non-technical people, it is a necessary evil. In these collaborations, I am typically doing either statistical or modeling work (or both). This often means that I am generating objects in […]

## New York Times Discovers R

#### January 6th, 2009 · 2 Comments · R

A recent article in the New York Times extolls the virtues of the R statistical programming language. Better late than never, I suppose. I first discovered R in 1999, just as I began writing my dissertation. At the time, I used Matlab for all my computational needs. I still occasionally use Matlab when doing hardcore matrix algebra […]

**Tags:** Anthropology·R·Statistics

## Plotting Recruitment Curves

#### January 2nd, 2009 · No Comments · Demography, Human Ecology, R

I was asked how I plotted the recruitment curve from my last post. It's pretty easy to do in R. PLAIN TEXT R: Dn <- expression(r * (1 - N/K) * N) r <- 0.004 K <- 10^10 N <- seq(0,10^10,by=10^7) png(file="recruitment.png") ## sends output to .png file plot(N,eval(Dn),type="l", xlab="Human Population", ylab="Recruitment") dev.off() Now we […]

**Tags:** Demography·population harvesting·R

## Nearly Neutral Networks and Holey Adaptive Landscapes

#### December 29th, 2008 · 2 Comments · Evolution, R, Social Network Analysis

My holiday reading on modularity has led me into some of the literature on the evolution of complexity. Some of the most interesting work in theoretical biology that I've read in a while relates to the ideas of nearly neutral networks and holey adaptive landscapes, an area developed by Sergey Gavrilets at the University of […]

**Tags:** evo-devo·Evolution·evolvability·graph theory·network·R

## Arrgh...

#### September 20th, 2008 · No Comments · R

I never did get around to writing about International Talk Like a Pirate Day yesterday. Carl Boe, from Berkeley, and I have a long-running joke about pirate-speak stemming from our teaching computing for formal demography using that old swashbuckler standby software -- you guessed it -- R. We wanted to reduce the anxiety generated in […]

**Tags:** pirates·R·Statistics