STATHARBOR ANALYTICS · INTRODUCTION TO STATISTICS · CHAPTER 28
Designing a Statistical Project
Conducting a statistical investigation requires careful planning from the formulation of research questions to the analysis and reporting of results. This chapter outlines key steps in designing a statistical project, emphasising reproducibility and ethical considerations.
Formulating the Question
Begin with a clear, answerable question. Good questions specify the population, variables of interest, and hypotheses. For example, “Does a new diet reduce mean cholesterol levels among adults aged 40–60 compared to the standard diet?” clearly defines the intervention and target population.
Study Design
Choose an appropriate design: experimental or observational. Randomised controlled trials are the gold standard for causal inference. Observational studies (cohort, case–control, cross–sectional) may be more feasible but require careful control for confounding. Define eligibility criteria, sampling procedures, sample size and measurement protocols. Consider ethical approval and participant consent.
Data Management and Analysis Plan
Develop a plan for data collection, storage and analysis before collecting data. Specify:
Data entry procedures and quality checks.
Variables to be collected and their formats.
Statistical methods for analysis, including primary and secondary outcomes and handling of missing data.
Software and code repositories for reproducibility.
Reproducibility and Reporting
Reproducible research ensures that others can obtain the same results using the same data and code. Use version control (e.g., Git), document all steps and provide code. Report methods and results transparently, including assumptions, limitations and potential sources of bias. Use guidelines such as CONSORT (for clinical trials) or STROBE (for observational studies).
Exercises
Practice
Draft a research proposal to investigate the effect of exercise on sleep quality. Specify the research question, population, design, sample size considerations, data collection methods and analysis plan.
Critically appraise a published study: identify the study design, population, sampling, measurement methods and potential biases. Suggest ways to improve the study.
Using R Markdown or Jupyter Notebook, perform an analysis on a dataset and ensure the document is fully reproducible. Share the code and discuss challenges encountered.
Discuss the importance of pre–registration and open data in reducing publication bias and p–hacking. Provide examples of pre–registration platforms.
References
Friedman LM, Furberg CD, DeMets DL. Fundamentals of Clinical Trials. 5th ed. Springer; 2015.
Nosek BA, Ebersole CR, DeHaven AC, Mellor DT. The preregistration revolution. Proceedings of the National Academy of Sciences. 2018;115(11):2600–2606.
Peng RD. Reproducible research in computational science. Science. 2011;334(6060):1226–1227.