Home  /  Stata Conferences  /  2026 Northern Europe

The 17th Northern European Stata Conference will take place on 24 September 2026 at the Norwegian Radium Hospital.

This conference will provide Stata users with the opportunity to exchange ideas, experiences, and information on new applications of Stata. Representatives from StataCorp will attend and host an open panel discussion, so you can share your questions and feedback directly with Stata developers. Anyone interested in using Stata is welcome. No level of expertise is assumed for presenters or attendees.


Program

All times are in CEST (UTC +2)

Thursday, 24 September

9:30–10:05 Registration and welcome
10:05–10:20 Pearson residuals in logistic regression: Comparison between logit and glm Abstract:
(Read more)
Logistic regression can be used to model the relationship between a set of covariates and a binary outcome. The predicted probabilities from the estimated model are inherently identical for observations sharing the same covariate pattern. In Stata, logistic regression can be performed using the logit and glm commands. Both procedures calculate Pearson residuals, but the underlying computation differs substantially. In logit, Pearson residuals are calculated at the level of covariate patterns, and the Pearson chi-squared goodness-of-fit test statistic is obtained by summing their squared values across covariate patterns. In contrast, in glm, Pearson residuals are computed at the individual level, and the Pearson deviance is defined as the sum of their squares over all observations. Unlike logit residuals, glm residuals can potentially vary among observations sharing the same covariate pattern, depending on the observed outcomes.

In general, except in the case of unique covariate patterns, Pearson residuals from logit and glm are not therefore the same. To illustrate these key differences, we present an example under three distinct scenarios: a single continuous covariate, a single categorical covariate, and a set of covariates of different types. Given the importance of postmodeling estimation, it is crucial to be aware of how Pearson residuals are calculated and to recognize that the Pearson goodness-of-fit test relies on residuals computed at the covariate pattern level. We hope this contribution supports the correct interpretation and practical use of Pearson residuals in Stata.

Contributor:
Rino Bellocco
Department of Statistics and Quantitative Methods, University of Milano-Bicocca, Milan, Italy; Department of Medical Epidemiology and Biostatistics, Karolinska Institutet, Solna, Sweden
(Read less)

Marta Ponzano
Department of Life Sciences, Health and Health Professions, Link Campus University
10:20–10:50 Autonomous research agents for mathematical conjecture testing: Bridging Stata 19 and agentic AI Abstract:
(Read more)
As large language models (LLMs) transition from generative chatbots to autonomous reasoning agents, the potential for automating complex scientific discovery workflows has expanded. This presentation introduces an agentic AI framework designed to solve and verify mathematical conjectures—such as those in extremal combinatorics and geometric structures—by leveraging Stata 19 as a primary engine for rigorous statistical validation and structural deep learning. I demonstrate how an autonomous agent can orchestrate workflows using the ReAct paradigm to decompose high-level mathematical hypotheses into executable Stata code; perform statistical verification by employing Stata's Bayesian variable selection (bayesselect) and structural equation modeling (SEM) to test the stability of generated conjectures against large-scale synthetic datasets; and carry out topological data analysis (TDA) by integrating external Python-based TDA libraries with Stata's visualization tools to identify geometric patterns in mathematical objects. The presentation will include a “Tips and Tricks” segment on building “Statistics Agent Skills”—local markdown-based instruction sets that allow LLMs to maintain context-aware modeling strategies within the Stata environment. I demonstrate that by embedding Stata's rigorous econometric standards into an agent's “second brain,” one can mitigate the logical reasoning failures common in generic LLMs while accelerating the pace of decentralized science.

(Read less)

Prasad Kothari
Senior AI leader and author
10:50–11:10 Approximate kernel regression in Stata using random Fourier features Abstract:
(Read more)
Nonlinear regression has wide application, including adjusting for confounders and secular trends in observational studies, modeling dose- and exposure-response relationships, predicting risk, and characterizing treatment-effect heterogeneity. Kernel methods facilitate flexible nonparametric regression, but the computation time and memory of classical approaches scale quadratically in the number of observations. In this talk, I will describe the makerff command for approximating kernel regression using trigonometric basis functions called random Fourier features. With this approximation, time and memory scale linearly in the number of observations for a given number of features. The command generates these features from a covariate varlist; kernel regression can then be approximated by ridge-penalized regression for continuous, binary, count, and time-to-event outcomes. I will present examples in which the command is used to approximate kernel logistic regression for risk prediction and kernel Cox regression with g-computation and bootstrap inference for marginal-effect estimation.

(Read less)

Christopher James Rose
Norwegian Institute of Public Health, Oslo, Norway
11:10–11:15 Break
11:15–12:15 Introduction to machine learning and AI using Stata Abstract:
(Read more)
This talk will briefly review the concepts and jargon of machine learning (ML) and artificial intelligence (AI) and demonstrate how to use these tools in Stata. Specific examples will include random forests and gradient boosting machines using Stata's suite of h2oml commands and the community-contributed commands chatgpt, claude, gemini, and grok.

(Read less)

Chuck Huber
Director of Statistical Outreach, StataCorp
12:15–1:00 Lunch
1:00–1:30 Projecting cancer prevalence through combining age-period-cohort models and survival models Abstract:
(Read more)
The number of people living with a diagnosis of cancer has increased over the last decades because of increasing incidence, improved survival, population growth and a shifting age distribution. Projections of cancer incidence and prevalence are used to estimate the future burden of cancer and help inform future resource requirements. Prevalence projections can be estimated by combining statistical models to predict future incidence and future survival, alongside estimates of future population structure. I will describe an approach, together with new commands, to predict future cancer prevalence that combines age-period-cohort (APC) models incorporating natural splines and flexible parametric survival models. For the APC models, different assumptions about future incidence rates can be made through including various combinations of different link functions, moving the upper boundary knot of the spline function and “dampening” future incidence. Different approaches to extrapolating future survival can also be made through use of period analysis and careful modeling of calendar time. As with any extrapolations, a well-informed sensitivity analysis is vital, as well as investigation of realistic “what if?” scenarios. I will describe new Stata commands to fit the APC models (apcmodel) and a set of postestimation commands to predict future incidence to combine the APC model with a survival model fit using stpm3.

(Read less)

Paul Lambert
Cancer Registry of Norway, Norwegian Institute of Public Health, Oslo, Norway; Medical Epidemiology and Biostatistics, Karolinska Institutet, Stockholm, Sweden
1:30–2:00 Reference-adjusted survival measures as an alternative to net survival in population-based cancer studies Abstract:
(Read more)
Age-standardized marginal net survival is the standard measure for comparing cancer survival across populations, but it is difficult to communicate to patients and clinicians. Reference adjustment has been proposed as an alternative, providing all-cause survival and crude probabilities of death that are both interpretable and comparable across populations by standardizing other-cause mortality to a common reference. In Stata, nonparametric net and reference-adjusted survival are available using the stpp command. A parametric flexible parametric model-based approach is possible using the stpm3 command followed by the standsurv postestimation command. I will demonstrate the different approaches using data from the Swedish cancer register on colon cancer, lung cancer, and melanoma. In addition, I will describe a simulation study following the ADEMP framework, conducted to assess the statistical properties of net survival and reference adjustment under controlled conditions, including their bias, coverage, and power to detect differences between populations, as well as their robustness to errors in the population mortality file.

The simulation study demonstrates two main findings. First, nonparametric reference adjustment shows substantially higher power than net survival to detect differences between populations for long-term survival estimates, with the advantage increasing with follow-up time and being most pronounced for cancers with good prognosis. Second, reference adjustment is substantially more robust to proportional errors in the population mortality file than net survival, a consequence of the mathematical structure of the estimator in which individual and reference mortality rates fully or partially cancel. Together these findings suggest that reference adjustment could be a valuable alternative to net survival in population-based cancer research.

Contributors:
Therese M-L Andersson
Department of Medical Epidemiology and Biostatistics, Karolinska Institutet, Stockholm, Sweden
Paul Lambert
Cancer Registry of Norway, Norwegian Institute of Public Health, Oslo, Norway; Medical Epidemiology and Biostatistics, Karolinska Institutet, Stockholm, Sweden
(Read less)

Rebecka Johansson
Department of Medical Epidemiology and Biostatistics, Karolinska Institutet, Stockholm, Sweden
2:00–2:20 Break
2:20–3:20 Causal mediation analysis with multiple mediators Abstract:
(Read more)
Causal mediation analysis allows for the decomposition into direct and indirect causal effects. This form of decomposition provides a fine-grained look at the pathways through which causal effects operate. In this presentation, I will review the basic principles of causal mediation in the context of the potential-outcomes framework. In addition, I will discuss some of the intricacies that we face when having more than one mediator variable and a number of examples with two mediators to illustrate the corresponding challenges.

(Read less)

Joerg Luedicke
Senior Social Scientist and Software Developer, StataCorp
3:20–3:40 Running multiple instances of Stata using the sessions command Abstract:
(Read more)
I will describe the sessions command, which is a simple tool to run “embarrassingly parallel” Stata sessions. The sessions command creates multiple Stata sessions with the ability to pass the same or different do-files to each session, with separate arguments for each session. Before starting a new Stata session, the sessions command will check whether there is sufficient free memory, that the CPU load is not too high, and that the maximum number of instances of Stata (set by the user) is not exceeded. A list of the Stata sessions that are queued, currently running, and have completed is updated every few seconds. The sessions command allows the user to wait until specific do-files have completed before continuing; for example, all analysis files may need to be completed before producing tables and graphs of results.

(Read less)

Paul Lambert
Cancer Registry of Norway, Norwegian Institute of Public Health, Oslo, Norway; Medical Epidemiology and Biostatistics, Karolinska Institutet, Stockholm, Sweden
3:40–4:00 Break
4:00–4:30 Bias-correction in adaptive trials using Stata Abstract:
(Read more)
Adaptive trials permit design features—sample size, randomization ratios, or enrollment criteria—to be changed based on accumulating data and are of particular interest in drug trials. A novel potential application is in public health and social measures (PHSM) trials. While PHSM were widely used during COVID-19, evidence on their benefits and harms remains limited. PHSM trials are challenging because the sampling frame is confined to the winter respiratory infection season, and measures can be burdensome, limiting enrollment. Adaptive PHSM trials can reduce sample sizes, spread recruitment across multiple winters, and allow early stopping for efficacy or futility, facilitating reallocation of research resources.

While adaptive designs control type I and type II error, data-dependent adaptations tend to bias conventional estimators. This is well documented, and a substantial corrective literature exists, yet systematic reviews find that bias correction is rarely used. This may be because analytic corrections are design and outcome specific, and there is little software support. I will present a prototype Stata command for bias correction applicable to arbitrarily complex adaptive designs. I will also show results for simulation-based experiments validating the command in a range of adaptive designs, including a real PHSM trial: an ongoing group sequential trial of portable air purifiers in schools to reduce student absence due to illness.

(Read less)

Christopher James Rose
Norwegian Institute of Public Health, Oslo, Norway
4:30–5:00 datamirror: Coefficient-preserving synthetic data for restricted microdata Abstract:
(Read more)
Reproducibility has become a condition of publication, but studies on restricted microdata remain its standing exception. The code can leave the secure environment; the data cannot. Synthetic data are the natural substitute, yet existing generators preserve distributions, not the published estimates. Rerun a published regression on their output and a different number comes back. This talk introduces datamirror, a community-contributed command that adds a coefficient-preserving layer to distributional synthesis. Inside the enclave, the researcher checkpoints a chosen set of regressions, and the extract step writes a small bundle of aggregates with no individual records. From that bundle alone, on any machine, anyone can rebuild the synthetic data, and the checkpointed regressions return their published coefficients, exactly for linear estimators and within sampling noise for the rest. No synthetic-data tool does this. The same bundle is both a replication package and a synthetic copy to work on outside the enclave. Across four American Economic Association replication packages, datamirror reproduces 377 of the 378 checkpointed regressions that yield an evaluable coefficient. The talk includes a live demonstration of the checkpoint, extract, and rebuild workflow.

(Read less)

Jeffrey Clark
Department of Economics, Stockholm University, Stockholm, Sweden
5:00–5:30 Open panel discussion with Stata developers
Contribute to the Stata community by sharing your feedback with StataCorp's developers. From feature improvements to bug fixes and new ways to analyze data, we want to hear how Stata can be made better for our users.

Scientific committee

Paul C. Lambert (Chair)
Cancer Registry of Norway Norwegian, Institute of
Public Health and Karolinska Institutet
Peter Hedström
Linköping University
Christopher James Rose
Centre for Epidemic Interventions Research and Cluster for Health and Social Care Interventions, Norwegian Institute of Public Health
Arne Risa Hole
Universitat Jaume
Morten W. Fagerland
Oslo Centre for Biostatistics and Epidemiology (University of Oslo and Oslo University Hospital)

General chairs

Bjarte Aagnes
Cancer Registry of Norway at Norwegian Institute of Public Health
Samuel Mossberg
Metrika Consulting AB

Registration and venue

The conference is free, but registration is required. All participants are responsible for their own travel and accommodation expenses.

To register for the conference, please email your name, affiliation, and contact details.

Register

The Norwegian Radium Hospital
Research building (K-building, Auditorium)
Ullernchausseen 70, 0379 Oslo, Norway

Visit the official conference page for more information.


Logistics organizer

The 2026 Northern European Stata Conference is jointly organized by Metrika Consulting AB, the official distributor of Stata for Russia and the Nordic and Baltic countries, the Cancer Registry of Norway at the Norwegian Institute of Public Health, and Oslo Centre for Biostatistics and Epidemiology (University of Oslo and Oslo University Hospital).

View the proceedings of previous Stata Conferences and international meetings.