Blog Archives

Tutorials on git/github and GNU make

May 10, 2013
By
Tutorials on git/github and GNU make

If you’re not using version control, you should be. Learn git. If you’re not on github, you should be. That’s real open source. To help some colleagues get started with git and github, I wrote a minimal tutorial. There are lots of git and github resources available, but I thought I’d give just the bare […]

Read more »

“My” chromosome 8p inversion

May 8, 2013
By
“My” chromosome 8p inversion

There was lots of discussion on twitter yesterday about Graham Coop’s paper with Peter Ralph (or vice versa), on The geography of recent genetic ancestry across Europe, particularly regarding the FAQ they’d created. I was eager to take a look, and, it’s slightly embarrassing to say, I first did a search to see if they’d […]

Read more »

Methods before results

April 29, 2013
By
Methods before results

It’s great that, in a step towards improved reproducibility, the Nature journals are removing page limits on Methods sections: To allow authors to describe their experimental designs and methods in enough detail for others to interpret and replicate them, the participating journals are removing length restrictions on Methods sections. But couldn’t they include the Methods […]

Read more »

Data science is statistics

April 5, 2013
By
Data science is statistics

When physicists do mathematics, they don’t say they’re doing “number science”. They’re doing math. If you’re analyzing data, you’re doing statistics. You can call it data science or informatics or analytics or whatever, but it’s still statistics. If you say that one kind of data analysis is statistics and another kind is not, you’re not […]

Read more »

Beware of grep with a list

April 3, 2013
By
Beware of grep with a list

Another R tip: beware of as.character applied to a list. Really, beware of grep with a list: You might have thought that the result would be just 1, but grep expects a vector of character strings. If the input is not that, it uses as.character(). Since the result of that starts with "c(", grep finds […]

Read more »

apply vs for

April 3, 2013
By
apply vs for

It’s widely understood that, in R programming, one should avoid for loops and always try to use apply-type functions. But this isn’t entirely true. It may have been true for Splus, back in the day: As I recall, that had to do with the entire environment from each iteration being retained in memory. Here’s a […]

Read more »

x[[c(5,3)]]

April 3, 2013
By
x[[c(5,3)]]

An R tip: Did you know that x[[c(5,3)]] is the same as x[[5]][[3]]? I should make more thorough use of this. In the help file for [[: [[ can be applied recursively to lists, so that if the single index i is a vector of length p, alist[[i]] is equivalent to alist[[i1]]...[[ip]] providing all but […]

Read more »

Thoughts on statistical consulting

April 3, 2013
By
Thoughts on statistical consulting

The Statistics Department at UW-Madison has a course on statistical consulting, offered each semester. I’m often asked to give a lecture, which I do in an informal way: summarizing my experiences and answering questions. I thought it might be useful write my thoughts on statistical consulting here: why, how, and difficulties. This will be a […]

Read more »

Data structures are important

March 19, 2013
By
Data structures are important

I’ve created another D3 example, of QTL analysis for a phenotype measured over time. (Click on the image for the interactive version.) The code is on github. It took me about a day. The hardest part was figuring out the right data structures. A pixel here is linked to curves over there and over there […]

Read more »

ENAR highs and lows

March 19, 2013
By
ENAR highs and lows

I attended the ENAR meeting in Orlando, Florida, last week. (ENAR = “Eastern North American Region” of the International Biometric Society.) I had a great time, but I did come to the strong realization that what I view as important is distinctly different from what the typical ENAR attendee views as important. (Rafa said, incredulously, […]

Read more »


Subscribe

Email:

  Subscribe