AIMs/SNPs, genomic ancestry and measurement error

The fewer SNPs (which may be AIMs or not) used to estimate individual-level ancestry, the higher the measurement error. Here I just dump some findings related to this topic. The results are somewhat divergent. The findings Ruiz-Linares cites are somewhat at odds with the others as far as I can tell. It is important to…

Continue Reading

Important gender gaps

Following the publication of another gender pay gap article, I wondered: What kinds of gender gaps do people think are important to talk about? Googling stuff is a crude measure of just this. The results: “gender wage gap” 448,000 “gender pay gap” 462,000 “gender income gap”, 14,000 “gender wealth gap” 4,340 vs. “gender lifespan gap”…

Continue Reading

Cognitive ability and political preferences in Denmark: knitr edition

http://rpubs.com/EmilOWK/208757 Analysis of the data collected so far, presented side by side with R code. It will be expanded into a proper paper and submitted to OQSPS soonish. Soonish here meaning when Noah gets around to do it! Due to the surprising results, we should probably do a follow-up replication using new subjects. These results…

Continue Reading

Python: Removing empty lists from mixed nested lists

Suppose you have some function that returns possibly nested lists with empty lists inside. Worse, they may have lists with lists with an empty list inside. And suppose you want to get rid of all the empty lists, including those that just have other lists with empty lists inside. Like this: a = [1, [2,…

Continue Reading

Installing the gsl package for R on Linux Mint 18

Today I was trying to install the MBESS package. One of its dependencies is the gsl package. However, trying to install that package gave the following error: cp: cannot stat ‘*.gcno’: No such file or directory Makevars:45: recipe for target ‘save-gcno’ failed make: [save-gcno] Error 1 (ignored) Googling it gave 0 results, which is a…

Continue Reading