Manuel B. Garcia

Manuel B. Garcia serves as the Senior Director for Educational Technology and Digital Learning at FEU Institute of Technology, Manila, Philippines. Read More

Contact Info

1607, FEU Tech Building,
P. Paredes St, Sampaloc,
Manila, Philippines
mbgarcia@feutech.edu.ph

Follow Me

Should You Inspect the Data Before Finalizing the Research Question?

Inspecting existing data before finalizing a research question can prevent you from designing a study the dataset cannot support. The challenge is separating legitimate feasibility checks from looking at results and then constructing the question around what appears interesting.

464
Should You Inspect the Data First? Guide 464 of 603
01 · The Question

How much should you look at existing data before committing to the question?

With newly collected data, the ideal sequence can seem straightforward: formulate the research question, design the study, collect the data, and analyze them. Existing data complicate that sequence. The dataset already exists, and some of its characteristics may need to be inspected before you can know whether your proposed study is feasible.

You might need to determine whether essential variables are populated, whether enough relevant cases exist, whether categories are extremely sparse, whether variables can be linked across files, or whether missingness leaves enough usable observations. Some of these questions cannot be answered confidently from a catalogue description or codebook alone.

But looking at the data also creates another possibility: you see an interesting association and then formulate a question or hypothesis around it. That can be legitimate exploratory research when reported transparently, but it is different from testing a question specified independently of the observed pattern.

The issue is therefore not simply whether you should inspect the data. It is what you inspect, why you inspect it, and what claims you later make about the resulting analysis.

02 · The Short Answer

Inspect what you need for feasibility without pretending the inspection never happened

In Brief

Yes, preliminary inspection of existing data can be appropriate before finalizing a research question when it is needed to determine feasibility, but the inspection should be limited, purposeful, documented, and kept distinct from examining substantive results that could shape the hypothesis.

If you have already examined relationships relevant to the eventual question, disclose that prior knowledge and distinguish exploratory or data-informed analyses from genuinely prespecified confirmatory tests. Preregistration can still improve transparency for secondary analyses, but prior access to the data should not be concealed.

03 · What You Need to Know

Separate feasibility inspection from substantive result inspection

Existing-data research creates a genuine design tension. You need enough knowledge about the dataset to avoid committing to an impossible study, yet excessive knowledge of the relationships you plan to test can influence which hypotheses, variables, exclusions, and analyses you choose.

Methodological work on preregistration of preexisting data recognizes this problem explicitly. Researchers using secondary data cannot change many features of the original study, and prior knowledge of the data may influence hypotheses and analytical decisions. Recommended transparency practices therefore include reporting whether the dataset was previously accessed or analyzed and what relevant information was already known.

Some inspection is simply feasibility checking

Imagine proposing a study involving three variables in an existing dataset. The documentation confirms that all three variables exist, but it does not tell you whether they contain substantial missingness or whether enough observations have valid information on all three simultaneously.

Opening the dataset to inspect frequencies and missingness may be necessary to decide whether the study can proceed. That is different from estimating the association among the three variables and then deciding whether the relationship looks interesting enough to study.

Feasibility inspection Examines whether the data can support the proposed study, such as variable availability, coding, sample counts, missingness, file structure, ranges, or linkage.
Substantive result inspection Examines the relationships, effects, group differences, model results, or other patterns that the eventual research question or hypothesis would evaluate.

The boundary is not always perfectly sharp. A frequency distribution may itself reveal substantively interesting information. A scatterplot created to identify impossible values may also reveal a relationship between variables. What matters is being explicit about what was inspected and recognizing when that inspection has supplied knowledge relevant to the eventual hypothesis.

Inspect variable availability when documentation cannot settle it

Documentation should normally be your first source for determining whether the dataset contains the variables required by your question. But the data file may reveal additional feasibility issues.

A variable documented in the codebook may contain values for only one survey module. A supposedly available measure may be almost entirely empty in the population you intend to analyze. Variables stored in separate files may require identifiers that do not link as expected.

Checking these features before finalizing the question can prevent substantial wasted work.

Inspect counts rather than assuming the advertised sample is your sample

If the dataset contains 30,000 records but your question concerns a narrow subgroup, you may need to count how many observations actually satisfy the relevant eligibility criteria.

Then check how many of those cases contain the variables required by the proposed analysis. This provides a more defensible basis for determining whether enough relevant cases are available.

This type of inspection does not require testing the hypothesis. You can often evaluate eligibility counts, subgroup frequencies, and joint variable availability without estimating the substantive relationship at the center of the proposed study.

Inspect missingness before committing to a model

A codebook can tell you that a variable exists. It cannot always tell you how much usable information it contains for your particular analytic sample.

Preliminary inspection may therefore include missing-value frequencies, patterns of joint availability across required variables, questionnaire skip codes, and retention across longitudinal waves. These checks can reveal whether missing data threaten the feasibility of the study.

The purpose at this stage is not necessarily to choose whichever missing-data strategy produces the preferred result. It is to understand the structure of the evidence before designing an analysis around it.

Inspect coding and distributions for impossible or unusable values

Basic inspection can also reveal discrepancies between documentation and the data file. You may find undocumented codes, impossible values, unexpected category labels, duplicated identifiers, or variables with virtually no variation.

A proposed predictor that has the same value for almost everyone may technically exist while offering little information for the intended analysis. Similarly, an outcome with an extremely rare category may change what analyses are realistic.

These are legitimate feasibility concerns. They should be distinguished from repeatedly trying alternative outcomes, predictors, transformations, or subgroup definitions until an attractive relationship emerges.

Prior access does not automatically invalidate secondary analysis

Researchers sometimes assume that once they have opened a dataset, preregistration or confirmatory analysis becomes meaningless. The methodological literature takes a more nuanced position.

Preregistration of secondary analyses can still restrict later analytical flexibility and make decisions more transparent. However, researchers should report relevant prior access and prior knowledge of the dataset. The credibility of a confirmatory interpretation depends partly on what was already known when the hypothesis and analysis plan were specified.

A useful record can include:

  • when you obtained access to the dataset;
  • which files or variables you inspected;
  • which descriptive summaries you examined;
  • whether relationships among variables were inspected;
  • whether you or collaborators previously analyzed the same data; and
  • what relevant results were already publicly available.

This kind of transparency allows readers to judge how independent the eventual hypothesis was from the observed data.

Preregistration is particularly useful when the data already exist

Preregistration is sometimes misunderstood as something that must occur before data exist. For secondary analysis, that is impossible by definition.

Instead, researchers can specify the question, hypotheses, operationalizations, exclusions, preprocessing, and planned analyses before conducting the focal analyses. Templates developed specifically for secondary data also ask researchers to report how the data were obtained, whether they were previously explored, and what relevant information is already known.

This does not erase prior exposure. It makes the sequence of decisions more visible and can reduce the opportunity to alter the analysis after seeing the focal results.

Watch Out

Preregistering after examining the relationship you intend to test does not make that prior inspection disappear. Record relevant prior knowledge honestly. Transparency about a data-informed hypothesis is methodologically stronger than presenting it as though it was specified without knowledge of the result.

Exploratory analysis is not the problem

Exploration is a legitimate part of research. Existing datasets are often valuable precisely because they allow researchers to discover patterns and generate new questions.

The methodological problem arises when exploratory and confirmatory reasoning are blurred. If inspection of the data generates a hypothesis, that hypothesis can be reported as data-informed or exploratory and investigated further, ideally with independent evidence when strong confirmatory claims are desired.

Methodological discussions of preexisting data emphasize distinguishing hypothesis-generating exploration from hypothesis testing because using the same observed pattern both to generate and to test a hypothesis changes how conventional inferential results should be interpreted.

You can sometimes protect the focal analysis from unnecessary exposure

If the dataset is large enough, one option is to conduct feasibility checks or develop analysis code using a subset of the data while reserving other observations for the focal analysis. Another approach is to validate the analytical pipeline on simulated data. In controlled-access settings, data custodians may also provide metadata, descriptive information, or restricted preliminary access before releasing the full analytical file.

These approaches do not suit every dataset or research design, and splitting data reduces the information available for each stage. Their value depends on the scientific goal. They can nevertheless help when researchers want to resolve practical analytical issues without repeatedly examining the focal results.

Write down the purpose of inspection before you inspect

A simple discipline can help: specify in advance what you need to learn from the data.

For example:

  • verify that the target subgroup contains at least enough observations for the planned feasibility assessment;
  • determine the proportion of missing values in essential variables;
  • confirm that participant identifiers link the required files;
  • check whether an ordinal variable contains the categories described in the codebook; or
  • verify which survey waves contain usable observations.

Once those questions are answered, stop. If you subsequently decide to explore substantive relationships, that can be done explicitly as exploration rather than smuggled into what was supposed to be a feasibility check.

04 · A Practical Example

Inspecting enough to know whether the study is possible

Hypothetical Example

A feasibility check without testing the proposed association

A researcher wants to examine whether frequent generative AI use is associated with academic engagement among first-year university students. The documentation indicates that both variables exist, but it does not report how many first-year students answered the AI module or how much engagement data are missing.

1. State the proposed question The researcher records the substantive question and identifies AI use and academic engagement as the focal variables.
2. Define the inspection boundary Before opening the data, the researcher decides to inspect eligibility counts, variable coding, missingness, and joint availability but not the association between AI use and engagement.
3. Inspect feasibility The researcher finds 1,840 eligible first-year students, confirms that the variables use the documented coding, and determines that 1,510 have usable information on both measures.
4. Avoid the focal result No cross-tabulation, correlation, regression, group comparison, or visualization of the relationship between AI use and engagement is examined.
5. Finalize the analysis plan Having established feasibility, the researcher specifies the operationalizations, exclusions, covariates, and focal analysis before examining the association.
6. Document prior inspection The eventual report states what was inspected before the analysis plan was finalized.

This sequence cannot guarantee complete independence from the data. Even descriptive information can influence research decisions. It does, however, create a much clearer distinction between checking whether the study is possible and selecting the question because of the result it produces.

05 · What Researchers Often Get Wrong

Common mistakes when inspecting existing data early

Misconception

You should never open the dataset before the research question is final

That rule can be impractical for secondary analysis. Some feasibility questions require direct inspection. The more defensible approach is to limit and document the inspection and distinguish it from examining the focal substantive results.

Misconception

Anything I do before the main regression is merely data cleaning

Data cleaning and feasibility checking can expose substantive patterns. The label attached to an activity does not determine whether it informed the hypothesis. Consider what information you actually saw.

Misconception

If I preregister afterward, the analysis becomes confirmatory

Preregistration can document and constrain decisions that remain unresolved, but it does not erase relevant prior knowledge of the data. Disclose what was known when the plan was registered.

Misconception

Exploratory findings are scientifically inferior

Exploration can generate important discoveries and hypotheses. The problem is not exploration itself but presenting data-generated hypotheses as though they were specified independently of the evidence used to generate them.

Misconception

If I avoid significance tests, I have not looked at the result

A scatterplot, correlation, group mean, contingency table, or other descriptive display can reveal the focal relationship without a formal significance test. What matters is the substantive information observed, not whether a p-value was calculated.

06 · What This Means for You

Use a deliberate inspection boundary

Before accessing the analytical data, write down what you need to inspect to determine feasibility. Begin with documentation wherever possible. Open the data only for questions that documentation cannot answer adequately, and avoid examining focal relationships unless exploration is genuinely your purpose.

A simple decision framework

If documentation answers the feasibility question
Use the documentation rather than inspecting additional substantive data unnecessarily.
If counts, coding, missingness, linkage, or other data properties must be checked
Inspect only what is necessary and keep a record of what you examined.
If you have already seen information relevant to the focal relationship
Disclose that prior knowledge and avoid implying that the hypothesis was specified independently of it.
If an interesting question emerges from examining the data
Treat it transparently as exploratory or data-informed and consider independent confirmation when the intended claim requires it.

Early inspection should help you determine whether the dataset can answer the question, not quietly transform the exercise into a search for whichever question produces the most attractive result. That distinction becomes especially important when deciding how much the available data should be allowed to shape the research question.

07 · A Quick Checklist

Inspect existing data without losing track of what you have learned from them

Before inspecting data to finalize a research question, check:
Write down the proposed research question or substantive area before examining the analytical data.
Use codebooks, questionnaires, technical reports, and other documentation before opening the data when they can answer the feasibility question.
Specify exactly what you need to inspect, such as counts, coding, missingness, ranges, linkage, or wave availability.
Avoid inspecting focal associations, group differences, model results, or outcome patterns when they are unnecessary for feasibility checking.
Keep a record of which files, variables, summaries, and analyses you or your collaborators have already seen.
Report relevant prior access or knowledge when preregistering or describing the eventual analysis.
If inspection generates the question or hypothesis, label that process transparently rather than reconstructing it as an a priori prediction.
Consider preregistering the focal analysis after feasibility is established and before examining the relationships it is intended to test.
08 · Frequently Asked Questions

Questions about looking at existing data before finalizing the study

Can I look at sample size before finalizing my research question?

Yes. Determining how many relevant and usable observations exist is often an essential feasibility check. Where possible, inspect counts without examining the focal relationships your eventual hypothesis will test.

Can I inspect missing data first?

Yes. Missingness can determine whether the proposed analysis is feasible. Record what you inspected and avoid using the exercise as an opportunity to select variables according to whichever substantive results look most favorable.

Can I preregister a study if I already have access to the dataset?

Yes. Preregistration of secondary analyses can still make hypotheses and analytical decisions more transparent and constrain later flexibility. Relevant prior access, previous analyses, and knowledge of the data should be disclosed.

What if I accidentally see the relationship I planned to test?

Record that exposure and be transparent about it. Depending on what was seen and how much it influenced subsequent decisions, the analysis may warrant a more exploratory or data-informed interpretation rather than a strong claim of independent confirmation.

Is exploratory analysis bad research?

No. Exploration is valuable for discovering patterns and generating questions. Its evidential role differs from a test whose hypothesis and analytical decisions were specified independently of the focal result, so the distinction should be reported clearly.

Should I inspect correlations before deciding which variables to study?

If your goal is exploratory discovery, that can be legitimate. If you intend to present the eventual hypothesis as confirmatory, inspecting correlations among candidate variables before choosing the hypothesis creates prior knowledge that should be acknowledged and considered in the interpretation.

09 · The Bottom Line

Inspect for feasibility, but keep the sequence of discovery visible

The Bottom Line

Inspecting existing data before finalizing a research question can be responsible and sometimes necessary, provided the inspection is purposeful, limited to what feasibility requires, and transparently distinguished from examining the substantive results the eventual question will test.

Document what you already know, preregister unresolved decisions when useful, and do not disguise a question discovered from the data as though it preceded them. Secondary analysis does not require ignorance of the dataset; it requires intellectual honesty about when and how the data influenced the research process.

10 · Sources and Further Reading

Sources and further reading on inspecting and preregistering existing data

11 · Cite this Guide

How to Cite This Guide

This guide is intended to be read, shared, and used in research, teaching, and academic work. If you draw on its ideas, explanations, or other content, please acknowledge the source by citing the guide. Doing so gives appropriate credit and helps your readers locate the original resource.

Has the Field Guide helped your research?

If a guide helped clarify a question, inform a research decision, or move your work forward, I would love to hear about your experience. Your story may also help other researchers discover the Field Guide.

Share Your Experience
Takes only a few minutes