- Introduced by
- Open science movement; Center for Open Science; funding agencies (NIH, EU, NSF)
- Year
- 2010
- Type
- Framework
- Family
- open-science
What does it do?
Data sharing and open science are practices that make research more transparent and checkable by publishing raw data, analysis code, and methods alongside the findings they support.
Failures to reproduce published results in psychology, medicine, and other fields, often called the replication crisis, have often been attributed to a publication system that rewards novel, significant results, since such incentives can encourage selective reporting and p-hacking. Open science practices (preregistration, data sharing, code sharing, open materials) are intended to reduce these biases and allow independent verification. Several funders, including NIH, NSF, and the EU, have introduced data-sharing expectations, and many journals now ask for a data availability statement or a code repository.
The intuition behind the method
Science is meant to correct itself through replication, but replication is impossible if data and analysis code are kept private. Researchers can introduce bias without intending to, for example by reporting only significant results or excluding outliers after seeing the data, and in rare cases fraud occurs. Shared data let other researchers re-analyse results and check for errors or implausible patterns. Preregistration records the analysis plan before the data are seen, so readers can tell planned tests from post-hoc ones and recognise HARKing (Hypothesizing After the Results are Known). Shared data can also support new analyses and meta-analyses, and shared code makes each analytic step inspectable. The main value of open practices is that claims can be checked.
History
Open science practices developed in response to concerns, raised in several fields, about whether published findings can be reproduced. The Open Science Framework, a platform for registering and sharing research materials, is operated by the Center for Open Science. Clinical trial registration is established practice, and ClinicalTrials.gov is a public registry of such trials. The FAIR Principles were first formally published in 2016 (Wilkinson et al.) to set out goals for making data findable, accessible, interoperable, and reusable.
When to use it
Apply open science practices from the start of a project, particularly for empirical studies with human participants, clinical trials, and studies that test several hypotheses, where analytic flexibility is greatest. Preregister confirmatory studies before data collection: clinical trials should be registered in a registry such as ClinicalTrials.gov, and other research can use OSF or AsPredicted. Share data and code with each publication, at minimum in a public repository. Preregistration is less informative for purely exploratory or descriptive work, where the aim is to generate hypotheses, and it should then be labelled as such rather than presented as confirmatory. Data sharing should be adjusted, not abandoned, when participant privacy or proprietary constraints apply: use de-identification, a controlled-access repository, or a data enclave, and state the restriction clearly.
Limitations and considerations
- Privacy: de-identification is not always sufficient, and some data, such as video or genetic data with identifying features, may not be safely shareable.
- Intellectual property: proprietary or commercially valuable data may have to be withheld or released later, which limits the verifiability of such work.
- Documentation burden: codebooks, metadata, and cleaned code take time and skill, and an undocumented dataset is hard to reuse.
- Technical barriers: researchers unfamiliar with repositories, persistent identifiers, or version control may need training or support.
- Preregistration is not a guarantee: it records intentions but cannot prevent undisclosed deviations, and its enforcement depends on reviewers and editors.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Allows independent checking of reported results, because others can re-run the analysis on the same data and code.
- Preregistration makes analysis plans public, which reduces scope for undisclosed analytic flexibility such as p-hacking and HARKing.
- Makes it possible to distinguish confirmatory from exploratory findings in the published record.
- Lets shared datasets support new analyses and meta-analyses by researchers who did not collect the data.
- Shared code and data can expose coding errors or implausible patterns before they affect the literature.
- Aligns with data-sharing expectations introduced by several funders, including NIH, NSF, and the EU.
Applications
- Illustrative case: a psychology researcher preregisters a directional hypothesis on OSF and then finds a smaller effect than expected. Reporting the null-leaning result together with the registered plan and a note on any deviation lets readers judge the evidence on its merits.
- Illustrative case: a biomedical group deposits de-identified expression data from a patient cohort in GEO together with a codebook. Other researchers can then re-analyse the same cohort, subject to the original consent terms and ethics approval, and the original authors are normally credited through the data citation. Some cohort data may be available only through controlled access.
- Illustrative case: a trial's results are questioned, but the raw data were never shared. Independent checking is then impossible, which is the situation data-sharing expectations are designed to avoid.
- Illustrative case: a computational method is published without its analysis code. Readers cannot reproduce the figures, which is why code sharing is now expected by many journals.
How it works
How it works
Preregistration: before data collection, especially for empirical studies, register the study design, hypotheses, and analysis plan in a public registry such as the Open Science Framework, AsPredicted, or ClinicalTrials.gov. The dated record makes it possible to compare what was planned with what was found, and it guards against HARKing, that is, presenting unexpected findings as if they had been predicted. Data sharing: after publication, deposit the raw data (de-identified for human-subject studies) in a repository such as Zenodo, figshare, OSF, or a discipline-specific archive such as GEO for genomics. Include metadata (a codebook describing variables) and a license. Code sharing: post analysis scripts (R, Python, MATLAB, or similar) with the data so others can rerun the analysis; version control such as GitHub helps track changes. Open materials: share survey instruments, experimental protocols, and stimulus materials. Many journals require a data availability statement that states where the data are archived.
Open science practice can be checked against these criteria. They describe what a well-documented open study provides and are not a computed score; for each criterion, record whether it is met, partly met, or not met, together with the reason. 1. Preregistration: the study design was registered before data collection, and the paper separates confirmatory (pre-specified) analyses from exploratory ones. 2. Data sharing: raw data are publicly accessible in a repository with a persistent identifier (DOI) and are de-identified for privacy. 3. Code sharing: analysis scripts are publicly available, commented, and able to reproduce the reported results; version control is preferred. 4. Metadata: a codebook or README explains variables, units, and data structure. 5. Licensing: data are shared under a stated license (for example CC0 or CC-BY) or a specific data-use agreement. 6. Open materials: protocols, surveys, and stimuli are shared so the study can be replicated. 7. Reproducibility: an independent researcher can download the data and code and reproduce the reported results. The FAIR Principles (Wilkinson et al., 2016) set out the same goals for data: they should be Findable, Accessible, Interoperable, and Reusable. The principles place particular emphasis on enabling machines to find and use data, as well as supporting reuse by people, so a dataset that is indexed in a repository, documented, and released under a stated licence is in a better position to meet them.
If a paper shares its data and code, readers can check the reported results without relying only on the authors' account. If the data are hidden, readers cannot check them and must take the findings on trust. Shared data can expose implausible patterns or coding errors that would otherwise go unnoticed. Preregistration helps readers weigh findings. It makes the distinction between confirmatory and exploratory analyses checkable, and by convention exploratory results are treated as hypothesis-generating until they are replicated in new data. Open practices also bring practical limits: de-identifying human-subject data, respecting proprietary or commercial restrictions, and the effort needed to write codebooks and clean code. Because funders increasingly require these practices, they are becoming standard, but a shared dataset is only useful if its documentation is adequate.
Common pitfalls
- Preregistering a study and then reporting results that depart from the registered plan without saying so; deviations should be stated and justified.
- Sharing data with inadequate metadata, so that variables and coding cannot be interpreted and the data cannot be reused.
- Sharing code that depends on proprietary software or on local file paths, so others cannot run it.
- De-identifying data inadequately: removing names and IDs may not prevent re-identification when quasi-identifiers such as rare conditions and locations are combined.
- Presenting a registration made after data collection as preregistration; a registration is only prospective if it predates the data.
Frequently asked questions
Does sharing data mean I lose credit for my work?
Usually not. Shared data are normally cited to the data provider through a DOI, so the work remains attributable. If you need time to finish your own analyses, you can use a limited embargo before the data are released; state the embargo in the data availability statement.
How do I de-identify human subjects data for sharing?
Remove direct identifiers such as names and ID numbers. Use aggregated or banded values where possible, for example age ranges instead of exact dates of birth. Check for quasi-identifiers, meaning combinations of attributes such as a rare condition with a specific location, which can identify individuals. Consult your ethics committee or IRB, because some data cannot be safely de-identified and should not be shared publicly. A controlled-access repository or data enclave, where approved researchers analyse the data under restrictions, is an alternative.
Is preregistration the same as clinical trial registration?
They are related but not identical. Clinical trial registration, for example on ClinicalTrials.gov, is required for clinical trials and records basic information such as the hypothesis and primary outcome. Preregistration on platforms such as OSF or AsPredicted can record a more detailed analysis plan, including hypotheses and sample size. Both are prospective registrations, and both make it easier to detect HARKing. Many medical journals require trial registration before publication, while other research can preregister voluntarily.
What if I find unexpected results after preregistering?
Exploratory findings are permitted. In the paper, label each result as preregistered (planned) or exploratory (unplanned). Report exploratory results, but present them as hypothesis-generating. Replicate them in new data before treating them as established.
Can I charge for access to my shared data?
Open data practices generally favour free access, so charging for shared data sits uneasily with them. If data are proprietary or part of a commercial product, you can share a subset, apply a restrictive licence, or use a controlled-access repository that requires approval. Describe any restriction clearly in the data availability statement.
Related methods
Sources
Open Science Framework (2023). OSF. Center for Open Science.
Open publication referenceWilkinson, M. D., Dumontier, M., Aalbersberg, I. J., et al. (2016). The FAIR Guiding Principles for Scientific Data Management and Stewardship. Scientific Data, 3, 160018.
Open DOI referenceCohen, S. A., Cox, R. P., Favor, T. K., & Glover, S. C. (2016). The Role of Preregistration in Psychological Research. Psychological Science Agenda (American Psychological Association).
Open publication reference