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 Test Your Planned Analysis on Pilot Data?

Testing the mechanics of your planned analysis on pilot data can reveal problems with coding, scoring, data structure, linkage, missingness, and software before the definitive dataset exists. That is different from using a feasibility-focused pilot to test the main hypothesis.

173
Testing Your Analysis on Pilot Data Guide 173 of 217
01 · The Question

If You Have Pilot Data, Should You Run the Analysis Planned for the Main Study?

A pilot can produce a dataset that looks remarkably similar to the one expected from the main study. The variables are there. The outcome can be calculated. The statistical model can be fitted. Software will happily produce coefficients, confidence intervals, and p-values, whether or not the study was designed to make those numbers meaningful.

So should you run the planned analysis?

Often, yes, if your purpose is to test whether the analytical workflow works. Pilot data can expose coding errors, unexpected data structures, scoring problems, missingness, linkage failures, impossible model specifications, or assumptions about the dataset that do not survive contact with actual observations.

That is quite different from treating the resulting pilot estimates as an early answer to the main research question.

02 · The Short Answer

Test the Analytical Workflow, Not the Main Hypothesis by Default

In Brief

It can be useful to run your planned analytical workflow on pilot data to verify that variables, coding, scoring, data linkage, transformations, software, and models operate as intended, but a feasibility-focused pilot generally should not be treated as a definitive test of the main study's substantive hypothesis.

The purpose of the exercise matters. Use pilot analysis to discover whether your data and analytical process work together and what needs correction before the main study. Interpret substantive estimates cautiously because pilot samples are commonly designed around feasibility objectives rather than precise estimation or hypothesis testing.

03 · What You Need to Know

There Are Two Very Different Meanings of “Testing the Analysis”

First Distinguish the Analysis Pipeline From the Research Hypothesis

Researchers can mean two different things when they say they want to test an analysis.

The first is procedural: can the data produced by the study be transformed into the variables, scores, datasets, models, and outputs specified in the analysis plan?

The second is substantive: do the pilot data support the hypothesis or show an effect?

Testing the analytical workflow Checks whether data preparation, coding, scoring, linkage, transformations, model implementation, diagnostics, and output generation work as intended.
Testing the substantive hypothesis Uses the data to draw inferential conclusions about effects, associations, differences, or other main-study questions.

The first can be an important pilot objective. The second generally requires much greater caution when the pilot was designed primarily to assess feasibility.

Test Whether the Variables Arrive in the Form You Expected

An analysis plan is usually written before the final dataset exists. Researchers make assumptions about variable names, coding, ranges, response categories, time points, identifiers, and file structures.

Pilot data can show whether those assumptions are correct.

A binary variable expected to contain 0 and 1 may arrive as text labels. Dates may be stored inconsistently. A questionnaire may export each response as a separate string. A repeated-measures system may produce data in wide format when the planned analysis expects long format. Different sites may code the same category differently.

None of these problems is statistically glamorous, but each can derail an analysis remarkably efficiently.

Test Scoring and Derived Variables

Many analyses depend on variables that are not recorded directly. Questionnaire scores may require reverse coding and summation. Composite outcomes may combine several measurements. Dates may be converted into durations. Categories may be derived from multiple responses.

Run these procedures on preliminary data and inspect the results. Check minimum and maximum possible scores, missing-item rules, reverse-coded items, units, impossible values, and whether derived variables behave as expected.

A scoring error identified after ten pilot records is inconvenient. The same error embedded throughout a definitive analysis is considerably less charming.

Test Whether Data From Different Sources Can Be Linked

Modern studies often collect information from several systems: surveys, electronic records, learning platforms, laboratory systems, devices, intervention logs, or administrative databases.

The analysis may depend on combining them correctly.

Pilot data can reveal inconsistent identifiers, duplicate records, mismatched time stamps, incompatible formats, missing linkage fields, or unexpected one-to-many relationships. Testing linkage is therefore part of determining whether the data-collection and management workflow is practical.

Use Pilot Data to Discover Missingness Before It Becomes a Full-Study Pattern

Analysis plans often specify how missing data will be handled, but pilot data can reveal where missingness actually arises.

You may discover that one questionnaire item is routinely skipped, a particular time point has poor completion, a device fails to transmit certain observations, or a branching rule accidentally prevents a subgroup from seeing an essential question.

At this stage, the most important response may be to fix data collection rather than immediately develop a more sophisticated missing-data model.

Missing data can be an analytical problem, but in a pilot they may first be evidence of a procedural problem.

Test Whether the Planned Model Can Be Fitted

Running the planned model can expose mismatches between the analysis plan and the data structure. Variables may have insufficient variation. Categories may be extremely sparse. A repeated-measures structure may differ from what was anticipated. Clusters may be too few for a planned approach. Software syntax may fail because the data are formatted incorrectly.

These findings can help researchers refine coding, data-management procedures, software scripts, or aspects of the analysis plan before the definitive dataset arrives.

However, failure to fit a complex model in a very small pilot does not necessarily mean the model will fail in the much larger main study. The pilot may simply contain too few observations or events. Distinguish a structural problem from a small-sample limitation.

Test Analysis Code Before You Need It

A pilot offers an opportunity to develop and debug analysis code early.

Researchers can test data import, validation, recoding, exclusions, scoring, transformations, model fitting, diagnostics, tables, figures, and export procedures. Reproducible scripts can then be revised and documented before the main analysis.

Simulated data can complement pilot data here. Simulation is especially useful for testing scenarios that the small pilot does not contain, such as rare categories, particular patterns of missingness, boundary values, or larger datasets.

Pilot data provide realism; simulated data provide controlled coverage. Used together, they can expose different weaknesses.

Check Whether the Analysis Plan Requires Information You Forgot to Collect

This is one of the most valuable reasons to test the workflow early.

You may discover that a planned adjustment requires a variable absent from the case-report form, that longitudinal records cannot be ordered because timestamps are missing, that a clustering variable is not retained, or that the analysis requires distinguishing events that the database records under one code.

If the omission is discovered before the main study, the collection system may still be corrected. If discovered after data collection, no statistical technique can reliably recreate information that was never recorded.

Do Not Let the Pilot Become an Unplanned Interim Effectiveness Test

Once researchers fit the main model, they will inevitably see the estimated effect. That creates a temptation to decide whether the definitive study is promising based on the pilot result.

For a feasibility-focused pilot, this is generally inappropriate. The pilot sample is usually selected to answer feasibility questions, not to estimate the substantive effect with sufficient precision or test the main hypothesis with adequate power.

A statistically significant result can be unstable. A non-significant result may reflect insufficient information rather than absence of an effect. The analytical software does not know why the sample size was chosen.

Interpretation should therefore respect what the pilot study can and cannot legitimately establish.

Be Careful About Using Pilot Effect Estimates for Main-Study Sample Size

A common reason for analyzing pilot outcomes is to obtain an effect estimate for the definitive sample-size calculation. Small pilot estimates can be highly uncertain, making direct use of the observed effect problematic.

An unusually large pilot effect can lead to an underpowered definitive study if the calculated sample becomes too small. An unusually small effect can produce an unnecessarily large target or discourage worthwhile research.

Where possible, sample-size planning should incorporate the best relevant external evidence and a scientifically meaningful target effect. Pilot data may inform other design parameters, but uncertainty should be considered explicitly.

Changes to the Analysis Plan Need to Be Documented

Testing the analytical workflow may reveal a legitimate reason to modify the planned analysis. Perhaps a variable is structured differently than expected, a scoring procedure needs clarification, or the original model cannot represent the data-generating structure appropriately.

Changes made because of pilot findings should be documented, justified, and finalized before the definitive analysis where possible. The implications depend partly on whether pilot data remain separate from the main study or contribute to it.

If pilot observations may later be included in the definitive dataset, using those same data to make outcome-informed analytical decisions raises additional concerns. The distinction between an external pilot and an internal pilot becomes important, as does the question of whether pilot data will contribute to the main analysis.

Watch Out

If you inspect pilot outcome differences and then modify the definitive analysis specifically to favor patterns observed in those data, you risk turning workflow testing into data-driven analysis selection. Keep procedural debugging distinct from choosing analyses because they produce more favorable substantive results.

04 · A Practical Example

Running the Planned Analysis Without Treating It as the Final Answer

Hypothetical Example

Testing an Analysis Pipeline for a Longitudinal Study

A research team plans a larger study with baseline, four-week, and eight-week assessments. Before the main study, a pilot generates data using the intended questionnaires and data platform.

Import The researchers run the planned import script and discover that the platform exports participant identifiers as numbers at baseline but text at follow-up.
Scoring The questionnaire-scoring script reveals that one reverse-coded item was entered incorrectly in the data dictionary.
Restructuring The planned longitudinal model requires one record per participant per time point, but the export produces separate files that must first be linked and converted into long format.
Missingness The team discovers that one follow-up question is missing for every participant because a branching rule was programmed incorrectly.
Model The planned model runs after these problems are corrected. It produces an estimated intervention effect, but the team does not use the pilot p-value as evidence that the intervention works.
Decision The data dictionary, survey logic, linkage procedure, and analysis scripts are corrected before main-study recruitment begins.

The pilot analysis has been highly useful without answering the main substantive question. Its value lies in preventing the same analytical and data problems from reaching the definitive dataset.

05 · What Researchers Often Get Wrong

Common Mistakes When Analyzing Pilot Data

Misconception

If You Run the Main Analysis, You Should Interpret It Like the Main Study

The same statistical procedure can serve different purposes in different designs. Running the model to test coding, structure, and implementation does not make a feasibility-focused pilot capable of supporting the definitive substantive interpretation.

Misconception

A Significant Pilot Result Shows the Main Study Is Worth Doing

A small pilot may produce unstable estimates, and its sample is commonly chosen for feasibility rather than effectiveness testing. Whether the main study should proceed should primarily follow the pilot's stated objectives and progression evidence, together with the broader scientific rationale.

Misconception

A Non-Significant Pilot Result Means the Main Study Is Unlikely to Work

Non-significance in a small feasibility pilot may simply reflect low precision. Abandoning the main study because of a hypothesis test that the pilot was never designed to perform can misuse the preliminary evidence.

Misconception

The Pilot Effect Size Is the Best Estimate for the Main-Study Calculation

A small pilot's point estimate can be highly unstable. Sample-size planning should consider stronger external evidence and a scientifically meaningful target effect where available rather than automatically treating the pilot estimate as the expected true effect.

Misconception

If the Model Does Not Converge in the Pilot, the Analysis Plan Is Wrong

Model failure may reveal a structural problem, but it may also result from the pilot's intentionally small sample, sparse events, or limited variation. Diagnose why the model failed before redesigning the definitive analysis.

Misconception

You Should Wait Until the Main Study Ends to Write Analysis Code

Developing code early can reveal missing variables, incompatible formats, scoring errors, and other preventable problems. Pilot and simulated data provide opportunities to test the pipeline before the definitive dataset is locked for analysis.

06 · What This Means for You

Use Pilot Analysis as a Stress Test for the Data Pipeline

Run enough of the intended analysis to determine whether the path from raw data to final output works. The objective is to discover what would otherwise surprise you after the main study has finished collecting data.

A simple decision framework

If you want to verify coding, scoring, linkage, transformations, or data structure
Use pilot data to run the relevant analytical pipeline and inspect intermediate outputs carefully.
If the pilot lacks combinations, categories, or sample sizes needed to exercise the full pipeline
Supplement the pilot with simulated data designed to test those cases.
If the planned model fails
Determine whether the failure reflects a coding or structural problem, an inappropriate model, or merely the pilot's small sample before changing the main analysis.
If running the model produces an apparently large, small, significant, or non-significant effect
Keep interpretation aligned with the pilot's feasibility purpose rather than allowing an incidental substantive result to drive progression.
If pilot findings require a legitimate change to the analysis plan
Document the reason and finalize the revised approach prospectively before the definitive analysis where possible.

Testing analysis early is part of a broader principle: study components can be tested before full implementation when doing so resolves consequential uncertainty. The analysis pipeline should not be exempt merely because it occurs near the end of the research process.

07 · A Quick Checklist

Before the Main Study, Stress-Test Your Analysis Workflow

When testing analysis on pilot data, check:
Do raw variables arrive with the names, types, categories, units, ranges, and formats expected by the analysis plan?
Do scoring rules, reverse coding, composite measures, derived variables, and exclusions produce the intended results?
Can records from different systems, sites, or time points be linked correctly using the available identifiers?
Do missing data reveal collection or programming problems that should be corrected before the main study?
Can the planned model and diagnostics be implemented with the expected data structure?
Does the analysis require any variable, timestamp, identifier, grouping information, or metadata that the current collection system fails to record?
Would simulated data help test conditions or edge cases that the small pilot does not contain?
Are changes to the analysis plan being driven by legitimate methodological problems rather than by a preference for more favorable pilot results?
Are substantive conclusions from pilot estimates limited to what the preliminary design can actually support?
08 · Frequently Asked Questions

Frequently Asked Questions About Analyzing Pilot Data

Should I analyze pilot study data?

Yes, insofar as the analyses answer the pilot objectives. It can also be useful to run the planned main-study workflow to test coding, scoring, data structure, linkage, software, and model implementation. The interpretation should remain appropriate to the preliminary design.

Should I run the same statistical model planned for the main study?

It can be useful as an operational test if the pilot data support fitting it. The goal may be to verify that variables and code work together rather than to interpret the resulting treatment effect or association as definitive evidence.

Should I report p-values from the pilot analysis?

Conventional hypothesis testing of effectiveness is generally not the primary purpose of a feasibility-focused pilot. Analyses should emphasize the objectives the pilot was designed to answer. If substantive estimates are presented, their uncertainty and preliminary status should be made clear rather than allowing a significance threshold to dominate interpretation.

Can pilot data be used to estimate the effect size for the main study?

A pilot can produce an effect estimate, but a small-sample estimate may be highly imprecise and can be a poor basis for the definitive sample-size calculation. Use stronger external evidence and a scientifically meaningful target effect where possible, while considering uncertainty in any pilot-derived planning parameter.

Can I use simulated data instead of pilot data to test the analysis?

Yes, for many aspects of the analytical pipeline. Simulation can test data structures, code, scoring, models, edge cases, and expected output before real data exist. Pilot data remain useful because they can reveal real-world coding, missingness, linkage, and collection problems that a simulation may not anticipate.

What if pilot analysis shows that my planned statistical method will not work?

Determine why. The problem may lie in the data structure, coding, collection procedures, model assumptions, or simply the pilot's small sample. If the main analysis genuinely requires revision, document the methodological reason and revise it prospectively before the definitive analysis where possible.

Does analyzing pilot data prevent me from including those data in the main study?

Not automatically, but it can complicate matters if pilot outcomes are used to make data-driven changes to the design or analysis. Whether pilot participants or data can contribute to the main study depends on how the pilot was designed, what was examined, what changed, and the relevant methodological and ethical considerations.

09 · The Bottom Line

Use Pilot Data to Debug the Analysis, Not to Pretend the Main Study Has Already Happened

The Bottom Line

Testing your planned analysis on pilot data can be valuable for finding problems in coding, scoring, data structure, linkage, missingness, model implementation, and analysis code before the definitive dataset exists.

Keep that procedural objective separate from testing the substantive hypothesis. A feasibility-focused pilot is usually not designed to provide definitive evidence about effects or associations. Use preliminary analysis to make the future study more robust, document legitimate changes prospectively, and save the main inferential conclusions for data collected under a design capable of supporting them.

10 · Sources and Further Reading

Sources and Further Reading

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