Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

The question

In an ideal world, you use public-use data, your code is all out there, and everything is out there. That is what journals want, and that is what research ethics suggests you do. Much of that is well established, and I will not rehash it here. Instead, this book is about how to square that transparency with the fact that some piece of almost every analysis requires confidentiality.

Maybe you are running a survey, and you owe privacy to your respondents: you promised it to them, and you signed off on that promise. Maybe you are using administrative data that is not yours. Maybe you purchased data, and even if you would like to make it public, the company that sold it to you (or made it accessible to you) does not want you to. What to do in these situations is much less well established than what to do with public-use data, so treat what follows as the start of a conversation rather than a set of rules.

Who this is for

That last group is larger than you might think. Data that are called “public” are often not entirely shareable, and some of what you believe to be public data may turn into something you have to worry about once legal frameworks such as the GDPR come into play.

Roadmap

A recurring theme: all of this needs to be built in from the start. Whether you can share the data affects how you collect them, how you write your code, and even how much money you ask your funder for.

Companion materials

References
  1. Meyer, M. N. (2018). Practical Tips for Ethical Data Sharing. Advances in Methods and Practices in Psychological Science, 1(1), 131–144. 10.1177/2515245917747656