DQDigital Qasas
HomeCoursesGuidesWebinarsBlogFor teams
Sign inGet started
←All courses
Data & Analytics

Medical Statistics with R and Python

Learn the statistics behind clinical and public-health research, then run every method yourself in R and Python without leaving the page.

IntermediateFree · sign in
18 modules · 34 lessons · ~8.0h read·Free · sign in
Start course →
Medical Statistics with R and Python
Free

Sign in once, then learn at your own pace

Start course →
This course includes
  • Intermediate level
  • 18 modules
  • 34 lessons
  • 8.0h of reading
  • 69 knowledge checks
  • Self-paced, learn anytime
  • Lifetime access
Description

About this course.

A complete, hands-on course in medical statistics built on the Kirkwood and Sterne spine, from describing data to survival analysis, meta-analysis, and study design. You learn each idea in plain language first, then run it live in the browser in both R and Python: no install, no setup. Every lesson carries worked clinical examples in a Malaysian and Southeast Asian context, common mistakes to avoid, and a question bank to test yourself. By the end you can take a messy dataset, clean it, choose the right method, run it, and write up the result the way a paper would.

Outcomes

What you'll be able to do.

  • ✓Read and write data in R and Python, and get a clinical dataset into a tidy, analysis-ready shape
  • ✓Describe data correctly: means, standard deviations, standard errors, the normal distribution, and the right summary for each variable type
  • ✓Build confidence intervals and interpret p-values without the common misreadings
  • ✓Compare groups with t-tests, ANOVA, chi-squared, risk ratios, odds ratios, and rates
  • ✓Fit and interpret linear, logistic, Poisson, and Cox regression models, and adjust for confounding
  • ✓Run survival analysis (Kaplan-Meier, log-rank, Cox) and analyse rates and person-time
  • ✓Pool evidence with meta-analysis and reason with Bayesian methods at an introductory level
  • ✓Choose the analysis from the study design, calculate the sample size you need, and judge the effect of measurement error
Who it's for

Who this course is for.

  • ✓Clinicians, medical and public-health postgraduates who need to understand and run the statistics in research papers
  • ✓Researchers and trainees who want to move from clicking through software to writing reproducible R or Python
  • ✓Epidemiologists and biostatistics students who want one course covering the whole applied workflow
  • ✓Anyone in health data who wants the concepts and the code together, taught with real clinical examples
Curriculum

What you'll cover.

18 modules · 34 lessons · ~8.0h read

010. Getting started: R and Python for medical data3 lessons
  • 1Why R and Python, and running them in your browser
  • 2Data frames, import, and tidy medical data
  • 3Tables and summaries
021. Foundations: variables and displaying data2 lessons
  • 1Variables, types, and the question behind the data
  • 2Displaying data: frequency distributions, histograms, and shape
032. Describing data2 lessons
  • 1Means, standard deviations and standard errors
  • 2The normal distribution
043. Estimation and inference2 lessons
  • 1Confidence interval for a mean
  • 2Using P-values and confidence intervals
054. Comparing means2 lessons
  • 1Comparison of two means
  • 2Analysis of variance
065. Linear and multiple regression2 lessons
  • 1Linear regression and correlation
  • 2Multiple regression and diagnostics
076. Transformations1 lesson
  • 1Transformations
087. Binary outcomes: risk, odds, proportions, the binomial2 lessons
  • 1Risk, odds, and how to compare them
  • 2Proportions and the binomial distribution
098. Comparing two groups2 lessons
  • 1Two proportions: risk ratio, odds ratio, risk difference, and confidence intervals
  • 2Chi-squared: 2x2 tables, larger tables, trend, and exact tests
109. Confounding and stratification1 lesson
  • 1Confounding and stratification
1110. Logistic regression and matched studies2 lessons
  • 1Logistic regression
  • 2Matched studies
1211. Rates and the Poisson distribution2 lessons
  • 1Rates and the Poisson distribution
  • 2Comparing rates and Poisson regression
1312. Standardization1 lesson
  • 1Standardization: direct, indirect, and the SMR
1413. Survival analysis2 lessons
  • 1Kaplan-Meier survival curves and the log-rank test
  • 2Cox proportional-hazards regression
1514. Statistical modelling2 lessons
  • 1Likelihood and the generalized linear model
  • 2Building models, checking assumptions, and clustered data
1615. Evidence synthesis: meta-analysis and Bayesian methods2 lessons
  • 1Systematic reviews and meta-analysis
  • 2Bayesian statistics
1716. Study design, sample size, and measurement3 lessons
  • 1Linking analysis to study design
  • 2Sample size and power
  • 3Measurement error and its consequences
1817. Capstone: an end-to-end applied analysis1 lesson
  • 1Capstone: from a messy dataset to a reported result
FAQ

Questions about this course

Do I need to install R or Python?

No. Every code block runs in your browser. R runs through WebR and Python through Pyodide, so you can run, edit, and re-run each example with nothing installed.

Do I need to know how to program first?

No. Part 0 starts from the very beginning: variables, vectors, data frames, and reading a table. If you have programmed before you can move through it quickly.

Why teach both R and Python?

R is built by statisticians and is the standard in much of medical research; Python is the general-purpose language of data science. Every method is shown in both, so you can work in whichever your team uses.

What background in statistics do I need?

None beyond school mathematics. The course builds each idea from intuition before any formula, then shows the formula and the code.

Is the course based on a standard textbook?

It follows the structure of Kirkwood and Sterne's Essential Medical Statistics, taught in our own words with original examples, and layered with the applied R workflow from the Epidemiologist R Handbook.

Medical Statistics with R and Python
Free

Sign in once, then learn at your own pace

Start course →
This course includes
  • Intermediate level
  • 18 modules
  • 34 lessons
  • 8.0h of reading
  • 69 knowledge checks
  • Self-paced, learn anytime
  • Lifetime access

Ready to start?

34 lessons across 18 modules, at your own pace.

Start course →
DQDigital Qasas

Practitioner-led Power BI and analytics training for Malaysian healthcare and business professionals.

Product

  • Courses
  • Guides
  • Blog

Company

  • About
  • Contact
  • Privacy
  • Terms

© 2026 Digital Qasas Sdn Bhd. All rights reserved.

Made in Kuala Lumpur