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

How Detailed Should Your Statistical Analysis Plan Be Before Data Collection?

A statistical analysis plan should specify enough detail to make primary analyses reproducible and distinguish planned decisions from those influenced by observed results. Learn what to prespecify, which decisions can remain flexible, and how the required detail varies by study design.

1037
Statistical Analysis Plan Detail Before Data Collection Guide 1037 of 1272
01 · The Question

How Much Statistical Detail Should You Decide Before Collecting Research Data?

You have developed a research question, selected a study design, and identified the variables you intend to measure. You know that statistical analysis should be planned before data collection, but you are uncertain how detailed the plan needs to be.

Is it enough to write that descriptive statistics, correlation, regression, or analysis of variance will be used? Must you specify the exact model, covariates, missing-data procedures, significance threshold, and sensitivity analyses? What happens if the data do not satisfy your initial assumptions?

The difficulty is that insufficient planning leaves important decisions vulnerable to being influenced by observed results, while excessive rigidity may prevent researchers from responding appropriately to genuine analytical problems.

The objective is not to predict every possible feature of the dataset. It is to specify the decisions necessary for defensible inference while establishing transparent procedures for handling legitimate uncertainty.

02 · The Short Answer

Specify Enough Detail to Make the Intended Analysis Reproducible and Accountable

In Brief

A statistical analysis plan should be sufficiently detailed that a qualified analyst could implement the planned primary analysis without making consequential choices based on the observed results. It should ordinarily define the analysis population, outcomes, estimands or target quantities, variable coding, statistical models, covariates, missing-data procedures, uncertainty measures, and planned sensitivity analyses, as relevant to the study.

The required detail depends on the design, inferential purpose, and applicable requirements. Confirmatory trials generally warrant more extensive prespecification than exploratory investigations. Legitimate changes remain possible, but their timing, rationale, and consequences should be documented, particularly when outcome data have already been examined.

03 · What You Need to Know

Determining the Appropriate Level of Statistical Analysis Planning

What Is a Statistical Analysis Plan?

A statistical analysis plan, commonly abbreviated SAP, is a document specifying how quantitative research data will be prepared, summarized, analyzed, and interpreted in relation to the study's objectives.

It translates the research protocol into operational analytical decisions.

For example, a protocol may state that an intervention's effect on academic performance will be evaluated. The SAP should clarify which performance outcome is analyzed, which participants are included, what comparison is estimated, how the statistical model is specified, and how uncertainty is quantified.

An SAP is not merely a list of statistical tests. It should explain the analytical logic connecting the research question, design, variables, and intended inference.

The term is particularly established in clinical trials, although equivalent analytical planning is valuable in observational and other quantitative research.

How Does an SAP Differ From a Research Protocol?

Research protocol Describes the study's objectives, design, participants, procedures, outcomes, ethics, and overall methodological approach.
Statistical analysis plan Provides operational detail about the analytical populations, variables, estimands, statistical methods, assumptions, uncertainty, and handling of analytical complications.

The documents should be consistent. The SAP may expand the protocol's statistical methods without changing its scientific objectives.

For a relatively simple study, an adequately detailed analytical section within the protocol may be sufficient. A separate SAP is particularly useful when analyses are complex, multiple analysts are involved, or a funder, regulator, sponsor, or institution requires one.

Researchers should verify applicable requirements rather than assume that every study must use an identical document format.

Why Is Statistical Detail Important Before Data Collection?

Many datasets support several plausible analytical choices.

Researchers may choose different outcome transformations, covariates, exclusion rules, subgroup definitions, or missing-data procedures.

When these choices are made after examining their effects on results, the analysis may become vulnerable to selective reporting and exaggerated certainty.

Prespecification helps distinguish decisions justified by the research question and design from decisions influenced by the observed data.

It can also reveal design problems before data collection. For example, planning a multilevel analysis may show that the proposed number of research sites is insufficient for the intended inference.

However, prespecification does not automatically guarantee valid analysis. A precisely documented but inappropriate model remains inappropriate.

How Detailed Should the SAP Be for Different Research Designs?

The required detail should be proportionate to the study's inferential claims and analytical complexity.

Study type Typical planning emphasis Important qualification
Confirmatory randomized trial Primary estimand, analysis population, model, covariates, missing data, sensitivity analyses, and multiplicity Applicable trial, sponsor, and regulatory requirements may prescribe additional detail.
Observational causal study Target population, exposure, outcome, confounding strategy, identification assumptions, and sensitivity analyses Prespecification does not eliminate unmeasured confounding.
Descriptive survey Target quantities, weighting, variable definitions, missingness, uncertainty, and subgroup summaries Sampling design determines appropriate population inference.
Longitudinal study Time structure, repeated-measures model, within-person dependence, attrition, and missing data Measurement timing and temporal assumptions must be explicit.
Exploratory quantitative study Analytical objectives, data processing principles, and transparent reporting of exploratory decisions Not every analysis must be fixed before data exploration.

The same statistical test may require different specifications depending on whether it supports a confirmatory hypothesis, an exploratory association, or a descriptive estimate.

Should the SAP Identify the Exact Research Questions and Hypotheses?

Yes, particularly when the study intends to test specific hypotheses.

Each primary research question should be linked to an appropriate analytical target and method.

For example, asking whether an intervention improves writing performance requires defining the outcome, the comparison conditions, the relevant time point, and the effect being estimated.

A statement that the data will be analyzed using regression is insufficient because it does not identify the intended coefficient, adjustment variables, or interpretation.

Secondary and exploratory objectives should also be distinguished so readers can identify the role of each analysis.

This alignment helps prevent statistical methods from becoming detached from the substantive research purpose.

How Precisely Should Outcomes Be Defined?

Outcomes should be operationally defined to the level necessary for consistent analysis.

The SAP may specify the measurement instrument, scoring procedure, scale, time point, direction of interpretation, and treatment of composite scores.

For example, academic writing performance might be defined as a total score on a prespecified analytic rubric, assessed at the end of an intervention by appropriately trained raters.

If multiple writing assessments are collected, the plan should identify which one represents the primary outcome.

Researchers should also explain whether the analysis concerns final scores, changes from baseline, or another target quantity.

These alternatives may have different statistical properties and should not be selected solely according to which produces the most favorable result.

Should the SAP Define an Estimand?

When a study seeks to estimate an intervention effect or another clearly specified target quantity, the SAP should identify what is being estimated.

In clinical trials, the ICH E9(R1) framework emphasizes defining an estimand through attributes including the treatment condition, population, variable, handling of intercurrent events, and population-level summary.

For example, researchers may seek the average difference in final writing performance between groups assigned to an educational intervention and comparison condition.

This differs from estimating the effect among participants who fully complied with the intervention.

The distinction matters because different analytical populations and handling strategies can answer different questions.

Although the formal ICH framework was developed for clinical trials, the broader principle of defining the target of inference is useful in other quantitative studies.

How Should Analysis Populations Be Specified?

The SAP should identify which observations contribute to each important analysis.

For randomized trials, this may involve an intention-to-treat-oriented analysis based on assigned groups, together with appropriately defined supplementary analyses.

However, the term intention-to-treat should not be used as a substitute for explaining how missing outcomes, exclusions, and intercurrent events will be handled.

Observational studies should specify eligibility, observation periods, and inclusion or exclusion rules relevant to the analytical sample.

Exclusions based on data quality or implausible values should follow defensible criteria rather than the direction of the estimated effect.

When different analyses use different populations, the reasons should be explicit.

How Detailed Should Variable Coding Be?

The plan should specify consequential variable transformations and coding decisions.

These may include reference categories, continuous versus categorical treatment, composite-score construction, centering, transformations, and the handling of special values.

For example, if age is included as a covariate, the plan should indicate whether it is modeled continuously, categorized using justified thresholds, or represented through a flexible functional form.

Arbitrary categorization can discard information and alter interpretation.

Not every software-specific formatting decision must be predetermined, but choices that affect estimates or hypothesis tests should be sufficiently clear.

A data dictionary can complement the SAP by documenting variables and permitted values.

Must the Exact Statistical Model Be Specified?

For a confirmatory primary analysis, the model should ordinarily be specified in enough detail to reproduce the intended estimate.

This may include the model family, link function, dependent variable, predictors, adjustment variables, interactions, covariance structure, and method for estimating uncertainty.

For example, a linear model comparing final writing scores might include treatment assignment and baseline writing performance as predictors.

If participants are nested within classrooms, the plan should address clustering through an appropriate design-based or model-based approach.

Writing only that a t-test, ANOVA, or regression will be performed may leave consequential choices unresolved.

However, some model details may legitimately depend on prespecified diagnostic rules or features that cannot be known before data collection.

Should Covariates Be Selected Before the Data Are Examined?

For confirmatory analyses, important adjustment variables should generally be specified prospectively using substantive knowledge and the research design.

In randomized trials, baseline covariate adjustment may improve precision when appropriately planned.

In observational causal studies, covariate selection should reflect a defensible confounding strategy rather than statistical significance alone.

Choosing covariates because they produce a preferred treatment estimate can undermine analytical credibility.

Researchers may conduct additional exploratory models, but these should be distinguished from the primary prespecified analysis.

How Should Missing Data Be Addressed?

The SAP should identify anticipated missing-data patterns and the primary strategy for handling missing observations.

Possible approaches include appropriately justified complete-case analysis, multiple imputation, likelihood-based methods, or other procedures suited to the design.

However, no method is universally appropriate.

Researchers should consider the missingness mechanism, the variables available, the analysis model, and the assumptions required.

For example, multiple imputation does not automatically remove bias when missingness depends on unobserved values after accounting for observed information.

Where missing outcomes could materially affect conclusions, planned sensitivity analyses should examine departures from the primary assumptions.

Detailed consideration of missing-data handling before data collection is especially important in longitudinal and intervention studies.

Should Assumption Checks Be Prespecified?

Yes, when the interpretation of the primary analysis depends on assumptions that can be assessed using the observed data.

The plan may specify residual diagnostics, checks of functional form, influential observations, or other relevant procedures.

However, not every assumption is directly testable. For example, the absence of unmeasured confounding cannot be established through a routine regression diagnostic.

Researchers should also avoid automatically switching statistical tests whenever a preliminary assumption test produces a particular p-value.

Where alternative methods are anticipated, the plan should explain the circumstances under which they will be used and how the resulting analyses will be interpreted.

How Should Statistical Significance and Uncertainty Be Specified?

For confirmatory hypothesis testing, the SAP should ordinarily state the significance level, whether tests are one-sided or two-sided, and how multiple comparisons will be addressed where relevant.

It should also specify appropriate effect estimates and uncertainty measures, such as confidence intervals.

A conventional significance threshold is not automatically appropriate for every study.

Researchers should justify the inferential approach according to the design, number of hypotheses, and consequences of statistical errors.

Statistical significance should not be treated as equivalent to practical importance or causal validity.

For descriptive or estimation-focused studies, interval estimates and substantive interpretation may be more central than dichotomous hypothesis tests.

How Detailed Should Secondary Analyses Be?

Secondary analyses should be planned sufficiently to distinguish prespecified objectives from later exploratory investigations.

However, the level of detail may vary according to their importance.

A key secondary outcome intended to support a formal claim may require substantial prespecification, including multiplicity considerations.

A supplementary descriptive analysis may require less extensive specification.

Researchers should avoid presenting secondary analyses as confirmatory merely because their results appear statistically significant.

The appropriate approach to prespecifying secondary analyses depends on the study's objectives and inferential claims.

Should Subgroup Analyses Be Included in the SAP?

Subgroup analyses should be specified prospectively when they are intended to investigate important differences in effects or associations.

The plan should identify the subgroup variable, categories or functional form, analytical comparison, and whether an interaction will be estimated.

For example, researchers may investigate whether an educational intervention's effect differs according to baseline digital access.

Comparing a significant result in one subgroup with a nonsignificant result in another does not establish that the effects differ.

An appropriate interaction analysis is generally needed to evaluate such a difference.

Subgroup analyses may have limited precision, particularly when the study was not designed or powered for them.

These considerations should inform subgroup analysis planning.

How Should Sensitivity Analyses Be Planned?

Sensitivity analyses examine how conclusions change under alternative assumptions or defensible analytical choices.

For example, a longitudinal study might examine whether results remain similar under different assumptions about missing outcomes.

The SAP should identify important assumptions and the alternative analyses intended to evaluate them.

However, sensitivity analyses should not be selected merely to find a version of the results that supports a preferred conclusion.

Researchers should explain what each analysis tests and how disagreement between results would affect interpretation.

Planning sensitivity analyses during research design can reveal information that must be collected to make them feasible.

What About Clustering and Repeated Measurements?

Clustering and repeated measurements should be addressed before data collection because they affect both analysis and sample-size planning.

For example, students within the same classroom may have correlated outcomes, while repeated scores from the same student are generally not independent.

The SAP should specify an appropriate analytical approach, such as a multilevel model, marginal model, or another justified method.

It should also consider the number of clusters, cluster sizes, measurement occasions, and relevant covariance assumptions.

Ignoring dependence can produce misleading standard errors and confidence intervals.

These issues should be coordinated with sample-size planning for clustering and repeated measures.

Must the SAP Name the Statistical Software?

Identifying the intended software and relevant procedures can improve reproducibility, particularly when different implementations may produce different results.

However, software names alone do not constitute an adequate analysis plan.

The scientific method should be described independently of a particular menu command.

For complex analyses, the plan may specify the intended estimation algorithm, relevant options, convergence criteria, and procedures for handling computational failures.

Version information and analysis code can be documented when the analyses are implemented.

Researchers should avoid allowing software availability to determine the research question or justify an inappropriate method.

What Details Can Legitimately Remain Flexible?

Some analytical decisions may depend on information that is unavailable before data collection.

Examples include the investigation of unexpected data errors, unforeseen convergence problems, or exploratory analyses prompted by new observations.

Flexibility is more defensible when the SAP specifies how such situations will be evaluated and how changes will be documented.

For confirmatory studies, researchers should avoid using knowledge of treatment effects or hypothesis-test results to select the primary model opportunistically.

Where possible, changes can be evaluated using blinded or otherwise appropriately restricted information.

The distinction between planned and exploratory analysis should remain visible in the final report.

When Should the SAP Be Finalized?

Major analytical requirements should be considered during study design, before recruitment and data collection create irreversible constraints.

In some trials, a detailed SAP is finalized after recruitment begins but before database lock, unblinding, or access to comparative outcome results, subject to applicable requirements.

This does not mean that researchers should postpone planning the primary analysis until the end of recruitment.

The protocol should already establish the essential design and analytical principles needed for sample-size planning and valid implementation.

The appropriate timing for specifying the primary analysis before recruitment depends on the study and its governance requirements.

How Should Changes to an SAP Be Documented?

Changes should be recorded with their dates, rationale, authorizations, and relationship to the information available when the decision was made.

For example, a change made before any outcome data are examined differs from a change selected after observing a treatment effect.

Researchers should preserve earlier versions rather than silently replace them.

Consequential deviations from prespecified analyses should be explained in the final report, with the original and revised analyses presented where appropriate.

Transparency does not automatically make every change scientifically justified, but it allows readers to evaluate its implications.

Can an SAP Reveal That the Research Design Is Inadequate?

Yes. Translating a research question into a concrete analytical procedure may reveal that the planned data cannot support the intended inference.

For example, a study may propose estimating institutional differences while including too few institutions to support the intended model or precision.

A study may also lack essential confounder measurements or appropriate follow-up timing.

These problems should be addressed through design revision rather than concealed by choosing a convenient statistical test after data collection.

Researchers should use analytical planning to assess whether the proposed study can answer its question before committing to implementation.

Watch Out

A statement such as "data will be analyzed using appropriate descriptive and inferential statistics" is not a sufficient confirmatory analysis plan. It leaves the outcome, comparison, model, adjustment variables, uncertainty, and potentially consequential analytical choices unspecified.

04 · A Practical Example

Turning a Vague Analysis Statement Into a Reproducible Plan

Hypothetical Example

Evaluating AI-Assisted Feedback in Undergraduate Writing Courses

A research team plans an individually randomized study comparing AI-assisted formative feedback with conventional feedback.

Students complete a baseline writing assessment and a final writing assessment scored using a defined rubric. The primary question concerns the effect of assignment to the AI-assisted feedback condition on final writing performance.

The original protocol states only that the results will be analyzed using descriptive statistics and an independent-samples t-test.

Analytical element Vague plan More defensible specification
Primary outcome Writing performance Final rubric total score at the prespecified assessment time
Target comparison AI versus conventional feedback Difference in mean final scores by randomized assignment
Primary model Use a t-test Linear regression of final score on assignment and baseline score
Analysis population Students with available data Prespecified population based on randomized assignment, with explicit missing-outcome handling
Uncertainty Statistical significance Estimated adjusted mean difference, confidence interval, and prespecified hypothesis test
Missing data Not specified Primary missing-data strategy and sensitivity analyses defined prospectively
Define the primary target

The team specifies the effect of randomized assignment on final writing performance, rather than an unspecified difference among participants who complete every activity.

Specify the primary model

The proposed linear model includes final writing score as the dependent variable, assignment as the principal predictor, and baseline writing score as a prespecified covariate.

Address missing outcomes

The team selects a primary method consistent with the anticipated missingness assumptions and plans sensitivity analyses for plausible departures from those assumptions.

Plan reporting

The analysis will report the adjusted mean difference, confidence interval, and relevant limitations, rather than rely solely on a p-value.

Finalize before outcome-informed decisions

The SAP is reviewed and dated before the research team examines comparative outcome results. Any later changes will be documented.

The revised plan is more reproducible because it resolves decisions that could otherwise be made after examining the results.

However, it is not complete merely because a regression model has been named. The team must still specify relevant scoring rules, analytical populations, missing-data procedures, and other consequential details.

If students are clustered within classrooms or instructors, the plan may also need to address that dependence. The hypothetical model assumes no unaddressed clustering that would invalidate its uncertainty estimates.

05 · What Researchers Often Get Wrong

Common Misconceptions About Statistical Analysis Plan Detail

Misconception

Naming a Statistical Test Is a Complete Analysis Plan

A test name does not specify the target estimate, analytical population, covariates, missing-data procedures, or interpretation. Confirmatory analyses generally require greater operational detail.

Misconception

Every Analytical Detail Must Be Fixed Before Any Data Exist

Some decisions may legitimately depend on unforeseen data problems or exploratory findings. The important distinction is whether flexibility is transparent and appropriate to the study's inferential purpose.

Misconception

Prespecification Guarantees Statistical Validity

A prespecified method can still be inappropriate. Researchers must evaluate the design, assumptions, measurement, and statistical model independently of whether the plan was written in advance.

Misconception

A Separate SAP Is Mandatory for Every Quantitative Study

Requirements vary. A simple study may adequately document its analysis within the protocol, while complex or regulated research may require a separate detailed SAP.

Misconception

Missing Data Can Be Addressed After Collection Without Planning

Missing-data handling can materially affect estimates and interpretation. Anticipated missingness and relevant sensitivity analyses should be considered prospectively.

Misconception

Any Change to a Prespecified Analysis Invalidates the Study

Changes may be justified when unforeseen problems arise. Their scientific consequences depend on the reasons, timing, available information, and transparency of reporting.

06 · What This Means for You

How to Decide Whether Your Statistical Analysis Plan Is Detailed Enough

Evaluate whether another qualified analyst could implement the intended primary analysis using the protocol, SAP, and accompanying data definitions without asking you to make major choices after seeing the results.

If the answer is no, identify which decisions remain consequentially ambiguous.

A simple decision framework

If the study makes confirmatory claims
Prespecify the primary target, analysis population, model, covariates, uncertainty, missing-data approach, and relevant sensitivity analyses.
If the study is primarily exploratory
Document analytical objectives and processing principles while identifying analyses developed after inspecting the data.
If clustering or repeated measures are present
Specify an approach that accounts for dependence and ensure sample-size planning is compatible with it.
If analytical assumptions may fail
Plan relevant diagnostics, defensible alternatives, and transparent reporting of deviations.
If the analysis cannot be specified without essential missing design information
Reconsider the study design or data collection plan before implementation.

The aim is not maximal documentation for its own sake. It is sufficient specification to protect the credibility and reproducibility of the conclusions the study intends to draw.

07 · A Quick Checklist

Before Finalizing Your Statistical Analysis Plan

Before approving the SAP, check:
Link each primary research question and hypothesis to a defined analytical target.
Specify primary outcomes, measurement timing, scoring, and relevant variable coding.
Define the analysis population and all consequential inclusion or exclusion rules.
Specify the primary statistical model, adjustment variables, and intended effect estimate.
Address clustering, repeated measures, weighting, or other design features where relevant.
Prespecify missing-data handling and important sensitivity analyses.
Define uncertainty reporting, hypothesis-testing conventions, and multiplicity procedures where applicable.
Distinguish primary, secondary, and exploratory analyses.
Date and retain the SAP, establish amendment procedures, and verify applicable institutional or regulatory requirements.
08 · Frequently Asked Questions

Frequently Asked Questions About Statistical Analysis Plan Detail

How detailed should a statistical analysis plan be?

It should specify enough detail to reproduce the intended primary analysis without making consequential decisions based on observed results. The level of detail depends on the design, complexity, and inferential purpose.

Is naming a statistical test sufficient?

Usually not for confirmatory research. The plan should also define the outcome, target comparison, analytical population, model details, uncertainty, and relevant missing-data procedures.

Must every quantitative study have a separate SAP?

No universal requirement applies. A detailed protocol analysis section may suffice for some studies, while trials and complex investigations may require a separate document.

Can an SAP be changed after data collection begins?

Potentially, when changes are justified and documented. Their implications depend on the timing, reasons, and whether researchers have examined relevant outcome results.

Should missing-data methods be included in the SAP?

Yes, when missingness could affect the intended analysis. The plan should identify a justified primary approach and relevant sensitivity analyses.

Does an SAP need to specify statistical software?

Software information can improve reproducibility, but it does not replace a scientific description of the analysis. Complex procedures may require additional implementation details.

Can exploratory analyses be performed if they were not prespecified?

Yes. Exploratory analyses can be valuable when identified transparently and interpreted without presenting them as prespecified confirmatory tests.

09 · The Bottom Line

A Good Analysis Plan Resolves Consequential Choices Before Results Can Influence Them

The Bottom Line

Your statistical analysis plan should be detailed enough to define and reproduce the intended primary analysis, including the analytical target, population, variables, model, uncertainty, missing-data handling, and other consequential decisions. The appropriate level of detail depends on the study's design and claims.

Plan early, preserve justified flexibility, and document changes transparently. The purpose of an SAP is not to prevent all analytical judgment, but to distinguish defensible methodological decisions from choices influenced by the results researchers would prefer to obtain.

10 · Sources and Further Reading

Foundational Research and Guidance on Statistical Analysis Planning

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