WOMBAT 2025
  • Schedule
  • Day 1 - Tutorials
  • Day 2 - Workshop
  • Register
    • Tutorials
    • Workshop
  • Contact
  • About
    • Code of Conduct
    • Organising Committee

Registrations are now open!

Getting Started with C++ for Faster Statistical Modelling in R

Recent advances have made it easier to integrate fast C++ code with the convenience of R for data analysis. Key topics in this session include working in RStudio, ensuring object compatibility between R and C++, using basic algorithmic structures and functional programming, extending R packages with C++ code, and applying these methods through hands-on exercises in linear algebra, maximum likelihood estimation, and Gibbs sampling.
Published

September 29, 2025

Getting Started with C++ for Faster Statistical Modelling in R

September 29, 01:30 pm

Code written in C++ runs significantly faster than code written in R, which provides the basis for many leading R packages. Such a design enables users to leverage the best of both worlds: the computational speed delivered by algorithms written in C++ and the convenience of data analysis using R. Fortunately, recent developments have simplified programming in C++ for R applications by automating many processes.

In this session, Tomasz will guide attendees through the basics of this approach, working in RStudio, ensuring object compatibility, using basic algorithmic structures and functional programming, and extending R packages with C++ code. A sequence of hands-on exercises with applications to every statistical modeller toolset, including linear algebra, maximum likelihood estimation, and Gibbs sampling, supports all this.

Register for this tutorial

Tomasz Woźniak

Tomasz Woźniak is a Bayesian econometrician developing new econometric methods for applied macroeconomic research. He has been a specialised R user for seventeen years, and has recently joined The R Journal as an Associate Editor. He is the author of several R packages, available at https://bsvars.org/, that combine blazingly fast algorithms written in C++ with the convenience of data analysis in R. He works as a senior lecturer at the University of Melbourne, where he has an extensive research, teaching, and engagement portfolio. He is also an external collaborator at the International Labour Organization, where he develops a new forecasting system and an R package.

Workshop Organised by the Monash Business Analytics Team