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.

How do you know you can share data?

You need to know right from the start whether you can share the data, because the answer will affect how you collect the data and how you write your code. There is no standard way in which data providers communicate this. You need to find out, keep track of it, and be on the lookout for it. When you first download a dataset, record not just the data but also the purposes, restrictions, permissions, and rights that come with your access.

“Free” is not the same as “shareable”

Terms like “free” and “public” get used loosely. “Free” refers to the money you pay. It says nothing about what you can then do with the data. If you purchase data, you might be able to share them with other people, or with everybody. Or you might only have purchased the right to access the data.

Think of the long user agreements you click through when you open software for the first time. You did not purchase the software to do with it whatever you want. You purchased a non-exclusive right to use it: the company can sell that same right to others, and you have no right to resell, publish, or give out the software. On the other hand, if you pay a programmer to code up your survey instrument, the contract typically transfers ownership to you. You own the software, even though the programmer wrote it, and you can do anything you want with it. Same kind of object, very different rights. Data work the same way.

Code is shareable even when data are not

Even when you cannot share the data, the most current transparency policies require you to provide the code you used, including the code that cleans the data. This is not pointless. Somebody else can go to the same provider, obtain the same data, run your code, and build on it. And anybody can inspect your code without the data, and ask whether what you are doing is reasonable.

A classic example: years of education where a missing value was coded as 99, but the researchers had not read the documentation and never removed it. Their mean (and possibly their median) are now completely wrong, and so is everything downstream. I do not need access to the data to see that: it is literally written in the code. (How to keep confidential information out of the code itself is covered in See also.)

How do you know you cannot share data?

Licenses: the DHS example

The DHS program is a good example precisely because the restrictions are not obvious. The program’s Registration Rationale The DHS Program, n.d. starts by saying that the datasets “are publicly available and can be downloaded free of charge for research purposes,” and the sidebar says that the program is “authorized to distribute, at no cost, unrestricted survey data files for legitimate academic research.”

Screenshot of the DHS Program "Dataset Registration Rationale" page.

Figure 1:The DHS Program’s Dataset Registration Rationale page (screenshot taken 2026-10-21).

Read further, though. The host country is the owner of the data. Agreements with host-country governments include commitments “that the data are used by real people with legitimate purposes,” and many countries do not allow commercial use. You were deemed to have a legitimate purpose, which is why you got access. If you give the data to somebody else, how can you verify that they have a legitimate purpose by those same rules? You cannot. And you do not have that agreement with the host country; the DHS program does. Note also the additional protections for HIV and GPS data, which require users to sign a separate digital consent.

The only place where the restriction is front and center is the login and registration page The DHS Program, n.d., which says, in bold, that “re-distribution of any DHS micro-level data, either directly or within any tool/dashboard, is not permitted.” And notice who gets to see this: you, when you register for the first time. Years later, when you come back as a long-time user, you have forgotten about it.

Screenshot of the DHS Program "Login or Register for Datasets" page.

Figure 2:The DHS Program’s Login or Register for Datasets page (screenshot taken 2026-10-21).

The full Terms of Use The DHS Program, n.d., linked from the sidebar, spell it out: the data are to be used only for the registered research project, are not to be shared with other researchers without the written consent of the DHS Program, are to be kept in a secure location, and are not to be re-distributed. Some countries add their own conditions, such as sending copies of publications to the national statistical office.

Screenshot of the DHS Program "Terms of Use" page.

Figure 3:The DHS Program’s Terms of Use page (screenshot taken 2026-10-21).

Licenses: the HRS example

The Health and Retirement Study (HRS) in the United States formalizes what is implicit in the DHS terms. Its Conditions of Use Health and Retirement Study, n.d. prohibit transferring HRS data “to any third party other than staff or students for whom you are directly responsible.” But a separate section explicitly allows third-party redistribution of HRS public release files, by data librarians, archives, and others, under four conditions:

In other words, you may redistribute the data, as long as you can verify that every recipient has been authorized by HRS. If you cannot verify that, you cannot redistribute. The same page has a Replication Policy: HRS supports replication, “but does not allow third-party distribution of its data by anyone, including journals,” and provides a guidance document for authors whose journals require replication packages. Users must also certify destruction of downloaded files, and anything derived from them, when HRS requests it, and must protect the data under the NIH Certificate of Confidentiality.

Screenshot of the HRS "Conditions of Use" page.

Figure 4:The HRS Conditions of Use page, updated 2026-02-04 (screenshot taken 2026-10-21).

The HRS conditions now also prohibit the use of AI programs and LLMs in conjunction with HRS data, with a separate, detailed AI and LLM Use Policy Health and Retirement Study, n.d.. It distinguishes three types of LLMs:

  1. LLMs that retain user-provided data (including for training);

  2. institutionally licensed LLMs that do not retain data;

  3. type 2 LLMs that are isolated within a secure network with no internet access.

Under the HRS data use agreements, sending data to a type 1 LLM counts as redistribution to the company operating it. Types 2 and 3 do not count as redistribution, but HRS currently does not accept requests for either. In practice, no LLM use with HRS person-level data is allowed, not even a model running locally. Using an LLM to write analysis code, or sharing model coefficients and summary statistics with it, is fine as long as no microdata are uploaded. AI features in code editors that automatically index the working directory must be disabled, or the HRS data stored outside any directory they can access.

Screenshot of the HRS "AI and LLM Use Policy" page.

Figure 5:The HRS AI and LLM Use Policy, updated 2026-08-04 (screenshot taken 2026-10-21).

Licenses: the WVS example

The World Values Survey (WVS) is widely used, and widely thought of as “public.” The Wave 7 download page World Values Survey Association, n.d. says that the data “can be used freely for non-commercial purposes such as research, publication, teaching,” but also that “data redistribution is prohibited: publication of the original WVS datasets at other online platforms is against the WVSA Constitution.”

Screenshot of the World Values Survey Wave 7 download page.

Figure 6:The WVS Wave 7 (2017--2022) download page (screenshot taken 2026-10-21).

The binding terms, however, only appear in a pop-up when you actually click to download a file. You fill in a short registration form and tick a box saying “I have read the ‘Conditions of use’ and agree with them.” The conditions World Values Survey Association, n.d. state that the files "are available without restrictions, provided:

“Without restrictions,” followed by four restrictions, one of which is the one that matters for a replication package. The pop-up is shown once per download, and nobody keeps a copy of it. This is exactly the kind of information you should record when you first obtain the data. Note too that the WVS data are also distributed by other archives (for example, DataFirst at the University of Cape Town), and those archives may add their own conditions: always check the terms of the place you actually got the data from.

Licenses: the PSID example

The PSID Conditions of Use Panel Study of Income Dynamics, n.d. are, again, a long list, but here it is much more obvious that these are conditions. They also mix their terms: these are “public release data,” and yet you may “not transfer PSID public data, including user-created data extracts, to any third party,” and co-investigators, collaborators, research assistants, and students must each register separately. “Public” here means that access does not require any special application. In my view, “public” is the wrong term for these: they are openly accessible data that come with restrictions.

Screenshot of the PSID "Conditions of Use" page.

Figure 7:The PSID Conditions of Use page (screenshot taken 2026-10-21).

Like the HRS, the PSID offers a way out for replication packages: if a journal requires you to provide access to PSID data, or you want to share extracts with others, you must deposit the extract in the PSID Public Data Extract Repository, maintained through openICPSR.

A newer clause states that “the use of Artificial Intelligence (AI) programs and Large Language Models (LLMs) in conjunction with PSID data is strictly prohibited.” I have an issue with the way this is written. A likely concern is that the data could be used to train LLMs and incorporated in a way that was not authorized. But what if I apply an LLM to analyze the data in a private environment, where nothing is learned and nothing is published? The clause does not distinguish. When people hear “AI,” they think of uploading a data file to a chat interface (which is literally what many people do), but that is not the only way to use LLMs. Do not assume the narrow reading, though: the HRS policy above, from the same institute, makes explicit that even isolated, local LLMs are currently not allowed. When in doubt, ask the provider.

Licenses stick to the data

The license travels with the data. If you distribute data informally within your institution, you know what the restrictions are, but do the people you gave the data to know? We have seen papers by PhD students who obtained data from their thesis advisor and then published them, not knowing that they were confidential. Legally, that stickiness is there regardless, and you are not the arbiter of whether it applies.

Questions from participants

If you collect your own data, the IRB approval and the consent your respondents gave constrain what you can share. This is discussed in Ethics review, consent, and data sharing.

Legal frameworks can turn what you think is public data into something you now have to worry about. The most obvious is the GDPR European Parliament and Council of the European Union, 2016 in the European Union, which applies to anything that affects an EU citizen. But it is not restricted to Europe: Brazil’s LGPD Brasil, 2018DLA Piper, n.d. is very restrictive and has affected what researchers working with Brazilian data can make available. There may be many other such laws, in countries whose legal background I do not know, that you need to be aware of.

A key subtlety: under the GDPR, you might collect data that are individually public (a CV, a personal website) for hundreds of researchers by scraping their public websites. By doing so, you have constructed a database containing personally identifying information, and that database is now subject to consent. All the data that flowed into it were public, but you now must respond to people who want their data removed from your database, which is no longer possible once you have disseminated it publicly. You have become a data controller, and that database, which might be at the core of your research, cannot be redistributed. This was not clear when the GDPR was implemented, and the interpretation has moved along. In a recent case with a US institution, authors had compiled public data from various sources and wanted to make it available to future researchers, with a registration requirement. ICPSR’s Disclosure Review Board declined to post it unless all the personally identifying information was stripped out, which would have made the data useless. Meyer (2018) makes a related point about aggregating “public” data from an ethics perspective (see Ethics review, consent, and data sharing).

Panel data and re-identification

DHS surveys are typically not panel datasets, but the PSID is: it follows people through time. It has been known for decades that being able to follow somebody over time, even in a small sample, is supremely identifying. If you set your mind to it, you can find the people in the PSID.

This has led statistical agencies to pull back from publishing panel surveys. Statistics Canada’s Survey of Labour and Income Dynamics (SLID) is a case in point. To protect respondents’ identity, Statistics Canada noted that “longitudinal files have been separated from cross-sectional files” Statistics Canada, 1997, and even the cross-sectional public-use files required aggressive data masking. When SLID replaced the Survey of Consumer Finances as Canada’s official source of income data in 1998, the cross-sectional public-use files had to include household and family identifiers, which compromised any release of longitudinal public-use files. Statistics Canada instead turned to synthetic data and research data centres for the longitudinal data Abowd & Woodcock, 2001Abowd et al., 2018. The cross-sectional files were protected by dropping direct identifiers, aggregating geography, grouping occupations, adding noise to year of birth, and top- and bottom-coding and perturbing income, to prevent users from linking consecutive cross-sections into their own panel Abowd & Woodcock, 2001.

From then on, the panel was accessible only in a restricted environment: you had to be affiliated with a Canadian university and walk into a locked room. Similar arrangements exist in many countries. Researchers working with a Ugandan dataset had, years ago, kept it on their laptops; the Uganda Bureau of Statistics now requires access through a secure room in Kampala. (More on such arrangements in Publishing data securely, with controls.)

Data ethics

See Ethics review, consent, and data sharing for a summary of Meyer (2018) and a discussion of the video.

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
  2. Meyer, M. N., Swauger, S., Kopper, S., & Vilhuber, L. (2022). Session 2: Reproducibility and Ethics – IRBs and Beyond. Labor Dynamics Institute. 10.7298/cvqw-v588
  3. The DHS Program. (n.d.). Dataset Access. Demographic and Health Surveys Program, ICF. https://dhsprogram.com/data/dataset_admin/login_main.cfm
  4. The DHS Program. (n.d.). Dataset Registration Rationale. Demographic and Health Surveys Program, ICF. https://dhsprogram.com/data/Registration-Rationale.cfm
  5. The DHS Program. (n.d.). Terms of Use. Demographic and Health Surveys Program, ICF. https://dhsprogram.com/data/terms-of-use.cfm
  6. Health and Retirement Study. (n.d.). Conditions of Use. Survey Research Center, Institute for Social Research, University of Michigan. https://hrsdata.isr.umich.edu/data-products/conditions-of-use
  7. Health and Retirement Study. (n.d.). AI and LLM Use Policy. Survey Research Center, Institute for Social Research, University of Michigan. https://hrsdata.isr.umich.edu/data-products/ai-llm-use-policy
  8. World Values Survey Association. (n.d.). Conditions of Use. https://www.worldvaluessurvey.org/AJDownloadLicense.jsp
  9. World Values Survey Association. (n.d.). WVS Wave 7 (2017–2022). https://www.worldvaluessurvey.org/WVSDocumentationWV7.jsp
  10. Panel Study of Income Dynamics. (n.d.). PSID Conditions of Use. Survey Research Center, Institute for Social Research, University of Michigan. https://simba.isr.umich.edu/U/CondUse.aspx
  11. European Parliament and Council of the European Union. (2016). Regulation (EU) 2016/679 of the European Parliament and of the Council of 27 April 2016 on the Protection of Natural Persons with Regard to the Processing of Personal Data and on the Free Movement of Such Data (General Data Protection Regulation). Official Journal of the European Union, L 119. https://eur-lex.europa.eu/eli/reg/2016/679/oj
  12. Brasil. (2018). Lei no 13.709, de 14 de agosto de 2018: Lei Geral de Proteção de Dados Pessoais (LGPD). https://www.planalto.gov.br/ccivil_03/_ato2015-2018/2018/lei/l13709.htm
  13. DLA Piper. (n.d.). Data Protection Laws of the World: Brazil. DLA Piper. https://www.dlapiperdataprotection.com/?t=law&c=BR
  14. Statistics Canada. (1997). Survey of Labour and Income Dynamics. Catalogue no. 75M0001G. https://www150.statcan.gc.ca/n1/pub/75m0001g/75m0001g1997000-eng.pdf
  15. Abowd, J. M., & Woodcock, S. D. (2001). Disclosure Limitation in Longitudinal Linked Data. In P. Doyle, J. I. Lane, J. J. M. Theeuwes, & L. V. Zayatz (Eds.), Confidentiality, Disclosure, and Data Access: Theory and Practical Applications for Statistical Agencies (pp. 215–277). North-Holland. https://www.sfu.ca/~swoodcoc/papers/abowd_woodcock2001.pdf