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

What Parts of an Analysis Plan Can Legitimately Remain Flexible?

An analysis plan does not need to predict every feature of data that do not yet exist. The important distinction is between decisions that should be made before results are known and flexibility that is genuinely required by the data, methodology, or research purpose.

159
Flexibility in an Analysis Plan Guide 159 of 217
01 · The Question

Does Planning the Analysis Mean You Cannot Change Anything Later?

You may understand why important analyses should be planned before data collection but still hesitate to commit to a detailed plan. What if the data are unexpectedly skewed? What if participants drop out? What if a planned model fails? What if qualitative analysis reveals an issue that deserves deeper investigation?

Those possibilities are real. An analysis plan written before data collection cannot know everything that will happen afterward.

The solution is not to choose between complete rigidity and complete freedom. A defensible analysis plan distinguishes decisions that can and should be made before the relevant results are known from decisions that legitimately depend on data characteristics, methodological iteration, or unforeseen events.

02 · The Short Answer

An Analysis Plan Can Be Flexible, but the Flexibility Should Have a Reason

In Brief

Parts of an analysis plan can legitimately remain flexible when the appropriate decision genuinely depends on information that cannot reasonably be known in advance, when alternative analyses are needed to assess robustness, or when methodological iteration is an intentional feature of the research design.

Core decisions that define the primary question, outcome, analytical target, and principal confirmatory analysis generally warrant greater advance specification. When plans change, preserve what was originally intended, document what changed and why, and distinguish planned, amended, sensitivity, and exploratory analyses where those distinctions matter.

03 · What You Need to Know

How to Tell Legitimate Flexibility From Result-Driven Analysis

Pre-Specification Is Not the Same as Predicting the Future

Advance analysis planning asks you to make decisions using the information reasonably available before the relevant results are known. It does not require pretending that future data characteristics are already known.

You can define the research question, primary outcome, principal comparison, variable roles, unit of analysis, and intended analytical strategy before collecting data. You may also know the broad structure of the observations, such as whether measurements will be repeated or participants will be clustered within sites.

Other features may remain uncertain. You may not know how much outcome data will be missing, whether a numerical algorithm will converge, whether a rare category will contain enough observations for a planned analysis, or whether an unforeseen data-quality problem will arise.

The analysis plan should specify what can reasonably be decided before collection while acknowledging genuine uncertainty rather than concealing it.

Core Confirmatory Decisions Usually Deserve Greater Advance Specification

The more consequential a decision is to the study's main confirmatory claim, the stronger the reason to specify it before the relevant results can influence the choice.

Depending on the study, this may include the primary outcome, principal research question or hypothesis, analytical population, primary comparison or estimand, main statistical model, treatment of important covariates, multiplicity strategy, and major missing-data assumptions.

Formal requirements vary by field. In clinical trials, ICH E9 states that the principal features of the statistical analysis should be described in the protocol and that the principal statistical analysis should be specified before breaking the blind. The precise regulatory standard should not be transplanted mechanically into every discipline, but the underlying logic is useful: decisions carrying the main evidential burden should not ordinarily be selected according to which result they produce.

Some Choices Can Be Specified as Contingencies

A decision does not need to be completely fixed to be planned.

Suppose a proposed model could fail to converge under particular circumstances. The analysis plan can identify the primary model and describe a defensible alternative if convergence cannot be achieved. If a measurement has known limits of detection, the plan can describe how values below those limits will be handled. If missingness exceeds a meaningful threshold or particular patterns arise, additional analyses may be planned.

The key is to define the reason for switching methods rather than leaving the researcher free to choose after comparing which result is more favorable.

Planned contingency An alternative procedure linked in advance to a methodological condition or problem that may arise.
Result-driven choice Selecting among analyses because one produces a more desirable effect estimate, p-value, confidence interval, or substantive conclusion.

Assumption-Dependent Decisions May Need Some Flexibility

Analytical methods rely on assumptions, and some relevant data characteristics cannot be fully evaluated before observations exist. This can justify conditional decisions.

However, “we will test assumptions and choose an appropriate analysis” may still leave too much discretion. The plan should identify which assumptions matter, how they will be assessed, and what kinds of departures would meaningfully challenge the primary method.

It is also unwise to let one preliminary significance test mechanically dictate the entire analysis. Assumption assessment may require graphical diagnostics, substantive reasoning, knowledge of a procedure's robustness, and consideration of the consequences of departures.

The objective is not to eliminate judgment. It is to prevent the observed substantive result from becoming the hidden decision rule.

Data Cleaning Requires Rules but Cannot Anticipate Every Error

No analysis plan can enumerate every typo, impossible date, duplicate record, coding error, or data-entry problem that might occur.

It can nevertheless establish principles for data cleaning. Researchers can define valid ranges, identify logically impossible combinations, describe duplicate-handling procedures, document corrections, preserve raw data, and specify consequential exclusion rules where possible.

Unexpected anomalies can then be resolved using those principles and documented. Flexibility is appropriate because the exact errors are unknowable, not because researchers should be free to remove observations that make the results inconvenient.

Missing Data Often Require Both Advance Planning and Adaptation

You may know that missing data are possible without knowing their eventual amount, pattern, or causes.

A plan can specify procedures to reduce missingness, how missingness will be summarized, the primary analytical approach, important assumptions, and sensitivity analyses relevant to those assumptions. Once the data are available, additional investigation may be warranted if the observed pattern differs materially from what was anticipated.

CONSORT 2025 asks trial reports to describe methods used to handle missing data, and its explanatory guidance emphasizes the assumptions underlying those methods and sensitivity analyses where appropriate. Other designs may require different approaches, but the broader principle remains: uncertainty about future missingness justifies planning contingencies, not ignoring the issue until the end.

Sensitivity Analyses Are a Legitimate Form of Planned Flexibility

A primary analysis may rely on assumptions that cannot be verified conclusively from the observed data. Sensitivity analyses allow researchers to ask whether the substantive conclusion changes under other reasonable assumptions or analytical choices.

This is different from searching through analyses for the most attractive answer.

A useful sensitivity analysis has a methodological purpose. It should challenge an assumption or choice important enough that a different conclusion would alter how the evidence is interpreted. When more than one analysis could answer the same research question, defining the primary and sensitivity roles in advance can make the resulting evidence much easier to interpret.

Exploratory Analysis Can Remain Open

Not every analysis needs to be pre-specified. Exploration is a legitimate part of research.

Researchers may discover unexpected patterns, formulate new hypotheses, investigate subgroups, examine alternative functional forms, or identify relationships that were not anticipated. Those analyses can generate valuable scientific ideas.

The crucial issue is how they are represented. An analysis inspired by observed data should not quietly acquire the status of a preplanned confirmatory test. Labeling analyses according to their role preserves the distinction between testing a prediction and discovering something worth investigating further.

Confirmatory analysis Evaluates a question, hypothesis, or principal analytical target specified independently of the relevant observed results.
Exploratory analysis Investigates patterns, questions, or hypotheses that may emerge through engagement with the observed data.

Qualitative Research May Require More Methodological Flexibility

In qualitative research, flexibility may be built into the methodology rather than treated as an exception.

Early interviews may shape later probes. Emerging categories may influence sampling. Coding frameworks may evolve. Researchers may deliberately pursue contradictory cases or developing theoretical ideas.

This does not mean that everything remains unspecified. A qualitative analysis plan can specify the analytical approach, data preparation, documentation, reflexivity, team roles, and logic of iteration while leaving substantive codes, categories, themes, or interpretations open where the methodology requires emergence.

The relevant distinction is between flexibility that serves the methodological approach and arbitrary changes that lack a defensible rationale.

Sequential Mixed-Methods Designs Also Need Conditional Decisions

Mixed-methods studies provide another clear example of legitimate flexibility.

In an explanatory sequential design, researchers may plan to select interview participants according to important or unexpected quantitative patterns. They cannot know exactly which pattern will emerge before the quantitative analysis occurs.

The mixed-methods integration plan can instead define how quantitative findings will guide qualitative sampling or questioning and what criteria will inform those decisions.

Again, the plan specifies the logic of adaptation rather than the unknowable outcome of that adaptation.

A Methodological Error Can Justify Changing a Prespecified Analysis

Pre-specification does not turn a mistake into a good method.

You may discover that the planned model is incompatible with the data structure, that a variable was incorrectly defined, that a statistical assumption was misunderstood, or that the proposed procedure does not estimate the quantity the research question actually asks about.

In such cases, knowingly retaining an inappropriate analysis merely because it was written earlier would prioritize procedural consistency over methodological validity.

Correct the problem. Then make the correction visible. Explain what the original plan specified, why it became inappropriate, what replaced it, and whether the change occurred before or after examining relevant outcome information.

Timing Matters When You Describe a Change as “Prespecified”

“Before analysis” can be ambiguous. A decision made after researchers have examined outcome distributions, group differences, or preliminary models is not equivalent to one made before those results were available.

When analytical chronology matters, document when important amendments were made and what information was available at the time. Registries, dated protocols, statistical analysis plans, version histories, or other records can help establish that sequence in contexts where formal documentation is appropriate.

The goal is not paperwork for its own sake. It is to allow readers to understand whether the data being evaluated could have influenced the method chosen to evaluate them.

Flexibility Becomes More Credible When It Is Transparent

A study does not become weak merely because the final analysis differs from the original plan. Real research encounters problems.

What undermines interpretability is silently changing outcomes, exclusions, models, transformations, subgroups, or hypotheses and then presenting the final configuration as though it had always been intended.

Transparent deviation reporting lets readers evaluate whether the change was methodologically necessary, exploratory, or potentially influenced by the observed results. That is considerably more informative than either pretending nothing changed or insisting that a flawed plan must be followed forever.

04 · A Practical Example

How a Flexible Analysis Plan Can Still Constrain Important Choices

Hypothetical Example

A Planned Longitudinal Analysis Encounters Unexpected Missingness

A researcher plans a longitudinal study with measurements at baseline and three follow-up occasions. The primary analysis and outcome are specified before collection, but the exact amount and pattern of missing follow-up data cannot be known.

Fixed in advance The research question, primary outcome, measurement occasions, analytical population, main comparison, and primary longitudinal model are specified.
Anticipated uncertainty The plan acknowledges that follow-up observations may be missing and specifies how missingness will be summarized and what assumptions underlie the primary analysis.
Planned flexibility Sensitivity analyses are identified to examine whether conclusions depend materially on reasonable alternative assumptions about missing data.
Unexpected event After collection, the team discovers an unusual pattern of missingness concentrated at one site that was not anticipated in the original plan.
Transparent adaptation The team investigates the problem, conducts an additional analysis justified by the newly discovered pattern, records why it was added, and distinguishes it from the prespecified primary and sensitivity analyses.

The analysis changed because the data revealed a genuine methodological issue, not because the researchers searched for an analysis that produced a preferred conclusion. That distinction is the essence of defensible flexibility.

05 · What Researchers Often Get Wrong

Common Misunderstandings About Analytical Flexibility

Misconception

“Pre-Specified Means Nothing Can Ever Change”

No. A planned method can become inappropriate, unexpected data problems can arise, and some methodological decisions legitimately depend on information unavailable beforehand. The appropriate response is justified and transparent adaptation, not blind adherence to a flawed plan.

Misconception

“Flexible Means I Can Choose the Best Analysis After Seeing the Results”

Methodological flexibility is not permission to select analyses according to which produces the strongest or most desirable result. Flexibility should have a scientific, statistical, or methodological rationale independent of the preferred conclusion.

Misconception

“Any Analysis Added Later Is Invalid”

No. Additional analyses can address unforeseen problems, test robustness, or investigate valuable new questions. Their interpretation depends partly on why and when they were added. Transparent exploratory analysis is preferable to suppressing potentially useful observations merely because they were unexpected.

Misconception

“If I List Several Possible Tests, I Have Prespecified the Analysis”

Listing many alternatives without explaining when each will be used can leave almost as much discretion as specifying nothing. Where alternatives are anticipated, define their roles or the conditions that would justify them.

Misconception

“Qualitative Flexibility Means Qualitative Analysis Cannot Be Planned”

Qualitative methodologies can intentionally preserve emergence while still specifying analytical procedures, documentation, reflexivity, data management, and the logic through which collection and analysis interact. Flexibility and methodological vagueness are not equivalent.

06 · What This Means for You

Decide What Must Be Fixed, What Can Be Conditional, and What Is Exploratory

A practical analysis plan can classify decisions according to how much advance specification they require. The boundaries depend on the methodology and purpose of the study, but making them explicit is useful.

A simple decision framework

If a decision defines the study's principal confirmatory question or primary analytical target
Specify it in advance as clearly as the design permits.
If the correct choice depends on a future data characteristic that cannot reasonably be known beforehand
Specify the decision principle, contingency, or reasonable alternatives where possible.
If an alternative analysis tests robustness to an important assumption
Define its sensitivity-analysis role and explain what disagreement with the primary analysis would mean.
If an unexpected methodological problem makes the original analysis inappropriate
Change the method when necessary and document the deviation, rationale, timing, and consequences.
If a new question or pattern emerges from the data
Investigate it as exploratory rather than retroactively presenting it as a preplanned confirmatory analysis.

For consequential or technically difficult choices, advance discussion with a statistician or methodologist during study design can help determine which decisions should be fixed and where conditional flexibility is more defensible.

07 · A Quick Checklist

Before Leaving an Analytical Decision Open

For every flexible part of the plan, check:
There is a methodological reason the decision cannot or should not be completely fixed in advance.
The research question, primary outcome, and main analytical target are specified as clearly as the study purpose requires.
Where possible, alternative methods are linked to defined contingencies rather than left to unrestricted post hoc choice.
Sensitivity analyses have a clear purpose related to assumptions or robustness.
Exploratory analyses will be distinguished from analyses intended to provide confirmatory evidence.
Unexpected data-cleaning and quality decisions will be documented rather than silently incorporated into the final dataset.
If the planned analysis changes, the original plan, timing of the change, rationale, and replacement method can be reconstructed.
The flexibility does not amount to choosing among results according to which conclusion is most favorable.
08 · Frequently Asked Questions

Frequently Asked Questions About Analysis Plan Flexibility

Can I change a statistical analysis that I specified before data collection?

Yes, when there is a defensible methodological reason. Preserve the original specification, explain why it became inappropriate or insufficient, state what replaced it, and document when the change occurred relative to examination of the relevant results.

What parts of a confirmatory analysis should usually be fixed?

The appropriate detail varies by field and study, but consequential decisions such as the primary question or hypothesis, primary outcome, main analytical target, principal comparison, and primary analytical strategy generally warrant greater advance specification than exploratory analyses.

Can I leave the statistical test undecided until I check assumptions?

Sometimes a particular choice genuinely depends on data characteristics, but you can usually specify much of the analytical strategy in advance. Rather than writing that an appropriate test will simply be chosen later, identify the primary approach and how consequential assumption problems will guide any alternative.

Are exploratory analyses less valuable because they were not planned?

No. Exploration can identify important patterns and generate new hypotheses. The issue is not whether exploratory analysis has value, but whether its evidential role is represented accurately rather than being presented as an independent prediction made before the data were examined.

Does preregistration prevent changes to the analysis?

No. A preregistered plan can be amended or deviated from when necessary. The value of the record is partly that readers can distinguish what was specified before particular information became available from what changed later and why.

How much flexibility should a qualitative analysis plan allow?

That depends on the methodology. Inductive and iterative approaches may intentionally leave codes, categories, sampling decisions, or developing interpretations open. The plan should nevertheless specify the analytical logic and procedures that govern how those decisions evolve.

What if an unplanned analysis seems more appropriate than the planned one?

Use the methodologically appropriate analysis rather than knowingly retaining a flawed method. Report the planned analysis where relevant, explain why the alternative is preferable, and make the timing and reason for the change transparent.

09 · The Bottom Line

Plan the Decisions You Can Make Now and Make Future Judgment Traceable

The Bottom Line

An analysis plan can legitimately remain flexible where decisions depend on genuinely unknown data characteristics, robustness checks, unforeseen methodological problems, exploratory aims, or iteration that is integral to the research methodology.

Flexibility becomes defensible when its purpose is clear and its use is transparent. Specify consequential decisions in advance when possible, plan contingencies where appropriate, and document later changes rather than allowing the observed results to quietly determine which analysis becomes the official one.

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