Looking to convert various statistics to correlation coefficients? Here’s a script I made earlier

In the process of producing a recent meta-analysis on telomeres as markers of exposure to stress and adversity, we needed to convert various effect types (e.g. standardised betas, F-ratios and T-statistics) to correlation coefficients, ready to be meta-analysed. The script is fairly straightforward, but it took a little while to write the script and format the data entry to work smoothly with the script. So, to save others some time and energy, I’ve made a generic version of the script, along with a template input file–just to make things easy to use. You can download the files here, along with a guide on how to correctly enter your data into the template input file, so that the correlation converter script can read it.

Quick-start guide:
1. Enter your data into this template csv, using the table in this document as a guide.
2. Make sure the template csv is in the same folder as this R script.
3. Run the script in R. If you don’t have R, you can learn more and download it here.
4. Once you’ve run the script, a new file, entitled “MetaAnalyisCommonAssociations.csv” should appear in the same folder. It should contain all the data in your original csv, plus two new columns containing the “CommonEffect” (the correlation coefficient) and the “CommonEffectVariance” (the measure of variance).

What is the script doing? The script contains comments explaining what each piece of code does, but for those who find diagrams and equations easier to follow, this flow chart shows the operations it performs:


Videos: Why should medics care about evolution?

A friend of mine, the wonderful Thomas Carpenter, is currently studying medicine at Edinburgh University. He is part of a group of medical students with an interest in evloution, who are calling themselves the Evolutionary Medics.

The Evolutionary Medics recently ran an event, which was entitled “Bringing Darwin back to Edinburgh: wine, cheese and evolutionary medicine.” The excellent presentations are now available to view on YouTube and I wanted to promote them here:

Dr Sam Brown – Can we make evolution proof drugs?

Prof Gillian Bentley – The Clinical Significance of Evolutionary Medicine


New book out now!

Applied Evolutionary Anthropology: Darwinian Approaches to Contemporary World Issues

AEA Book Cover

This book has been published as the first of a series, Advances in the Evolutionary Analysis of Human Behaviour, edited by Rebecca Sear. The series is intended “to promote the European Human Behaviour and Evolution Association tenets of rigour, integration and pluralism by producing a series of methodologically rigorous books with a pluralistic theme in the human behavioral sciences.”

This volume was edited by Mhairi Gibson and David Lawson. I am proud to have made my contribution, along with with Daniel Nettle:

Chapter 10Socioeconomic Disparities in Health Behaviour: An Evolutionary Perspective.

Video: Being there (talk at the ESRC Festival)

Being there: a brief visit to a neighbourhood induces the social attitudes of that neighbourhood

Here is a video of one my recent talks as part of the ESRC Festival of Social Science event, “Using social sciences to tackle the toxicity of urban life”. The video just gives footage of me talking, so you will need to download the slides as a PDF here: beingtherepresentationslides.pdf.

The publication associated with this presentation can be found at: https://peerj.com/articles/236/