Thank you for your interest in this work. I have an easy answer for your second question: for anything that is a “select multiple” question (see the “type” column of the “survey” sheet in the xls form), you can encode multiple selections as a space-separated list, i.e “1 2” for cigarettes and pipe.
Here is where to look to find out if a question is a “select multiple” in PHMRC_Shortened_Instrument_8_20_2015.xls for when this comes up with other questions:
(This already came up with a different group mapping injuries, see here if you want to know more: https://healthyalgorithms.com/2016/01/28/injuries-query-on-mapping-data-for-smartva-analyze-1-1/ )
In order to answer your first question, I think I need more information. Can you give me an example of what you are trying to do? It also be helpful if you can try it, and let me know what goes wrong if it does not work.
Here is another little detail for the detail-oriented mapper who is trying to get data into SmartVA-Analyze: agedays.
In the tutorial, I mentioned that there are handful of additional columns that are not in the Guide, because they are created automatically by the ODK form.
The one called
agedays is a bit important, because it gets used to determine if the age of the deceased is above or below a threshold. So set it! The important things currently are if it is more or less than 300 and if it is more or less than 3.
From: Ben Marwick
Sent: Monday, January 11, 2016 4:06 PM
Subject: [Reproducible] New paper on reproducible research in archaeology
You might be interested to know of a peer-reviewed paper on reproducible research in archaeology that I’ve just had published.
The paper owes a big debt to the UW eScience Institute, especially the Reproducibility and Open Science Working Group. So this paper is a kind of tribute to all of you in that group who have helped me make sense of reproducibility, thanks!
Here’s the citation and a link to the PDF:
Marwick, B. (2016). Computational reproducibility in archaeological
research: Basic principles and a case study of their implementation.
Journal of Archaeological Method and Theory, 1-27. doi:
All the gory details of the case study paper are here:
https://github.com/benmarwick/1989-excavation-report-Madjebebe so you can give it a try. It works on my machine 😉
Satirical paper puts evidence-based medicine in the spotlight
Best reference (fictitious, I think): Rawlings, F. & Wilson, B. R. (1999) Inducing minor traumatic injuries in toddlers for the purpose of conducting randomised controlled trials. Techniques in Evidence-Based Medicine (Canada), 2 (5), 328–386.
I had an annoying little issue, where git was saying my file was binary. What do I care what git thinks? Well, I care if it refuses to show me my diff:
[abie@cluster-dev TICS]$ git diff
diff --git a/etl.py b/etl.py
index 3b5b4ca..2cb591e 100644
Binary files a/etl.py and b/etl.py differ
Google and Stack Overflow usually solve any problem I have like this, but today they under-delivered. They gave me a good hint, there must be some funny character in my .py file. That can happen when a 1.5 year old is helping with the typing.
Here is a quick fix, in case I (or you) ever find ourselves in this situation again:
f = file('etl.py').read()
with file('etl.py', 'w') as f2:
All better. Thanks again unidecode.